-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_next_line_helper.c
More file actions
25 lines (23 loc) · 1.04 KB
/
get_next_line_helper.c
File metadata and controls
25 lines (23 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line_helper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mamoussa <mamoussa@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/12/11 12:42:41 by mamoussa #+# #+# */
/* Updated: 2020/12/12 16:25:17 by mamoussa ### ########.fr */
/* */
/* ************************************************************************** */
#include "shell.h"
void get_next_line_helper(char *buff)
{
if (g_buff)
g_tmp = g_buff;
g_buff = ft_strdup(buff);
if (g_tmp)
{
free(g_tmp);
g_tmp = NULL;
}
}