-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_normalize.c
More file actions
26 lines (23 loc) · 1.04 KB
/
ft_normalize.c
File metadata and controls
26 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
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_normalize.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ohachim <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/26 19:27:50 by ohachim #+# #+# */
/* Updated: 2019/05/26 06:16:48 by ohachim ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_normalize(char **sh)
{
char *temp;
while (ft_strlen(*sh) < 8)
{
temp = *sh;
*sh = ft_strjoin("0", *sh);
free(temp);
}
return (*sh);
}