-
Notifications
You must be signed in to change notification settings - Fork 0
/
conversion_c.c
23 lines (21 loc) · 1.02 KB
/
conversion_c.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* conversion_c.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: araiva <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/26 13:28:34 by araiva #+# #+# */
/* Updated: 2022/03/26 13:28:35 by araiva ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *conversion_c(char c)
{
char *str;
str = ft_calloc(sizeof(char), 2);
if (!str)
return (NULL);
str[0] = c;
return (str);
}