-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_strlcat.c
30 lines (26 loc) · 1.17 KB
/
test_strlcat.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
26
27
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test_strlcat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cnysten <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/02 11:14:11 by cnysten #+# #+# */
/* Updated: 2021/12/02 11:16:29 by cnysten ### ########.fr */
/* */
/* ************************************************************************** */
#include "test_libft.h"
void test_strlcat(void)
{
t_test *test = new_test();
char s1[] = "xyz";
char s2[] = "xyz";
char d1[10] = "abc";
char d2[10] = "abc";
print_function("FT_STRLCAT");
strlcat(d1, s1, 10);
ft_strlcat(d2, s2, 10);
test_string(d1, d2, test);
evaluate(test);
free(test);
}