mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix(worddesc_create): need to initialize mark_string
This commit is contained in:
parent
63df02aec5
commit
dd4f109d38
1 changed files with 6 additions and 2 deletions
|
|
@ -3,20 +3,24 @@
|
|||
/* ::: :::::::: */
|
||||
/* worddesc.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/13 17:20:36 by khais #+# #+# */
|
||||
/* Updated: 2025/03/11 11:13:33 by khais ### ########.fr */
|
||||
/* Updated: 2025/03/21 10:10:02 by jguelen ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "worddesc.h"
|
||||
#include "libft.h"
|
||||
#include "libft/libft.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
/*
|
||||
** allocate a new worddesc with given flags, marker, and word.
|
||||
**
|
||||
** mark_string is initialized as a string of the same length as word, but filled
|
||||
** with spaces
|
||||
**
|
||||
** return null in case of error, or if word is null
|
||||
**
|
||||
** mark_string is initialized as a string of the same length as word, but filled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue