-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_strclear.c
25 lines (22 loc) · 1.08 KB
/
test_strclear.c
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test_strclear.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cdrouet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/12/03 08:11:14 by cdrouet #+# #+# */
/* Updated: 2015/12/03 08:14:27 by cdrouet ### ########.fr */
/* */
/* ************************************************************************** */
#include "testlibft.h"
void test_strclr()
{
char ptr[20] = "bonjour";
ft_strclr(ptr);
ft_putstr("TEST STRCLR : ");
if (ptr[6] == '\0' && ptr[3] == '\0')
ft_putendl("ok :)");
else
ft_putendl("not ok :(");
}