-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_memchr.c
25 lines (21 loc) · 1.09 KB
/
test_memchr.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_memchr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cnysten <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/02 11:04:17 by cnysten #+# #+# */
/* Updated: 2021/12/02 11:07:30 by cnysten ### ########.fr */
/* */
/* ************************************************************************** */
#include "test_libft.h"
void test_memchr(void)
{
t_test *test = new_test();
char s1[] = "abcd";
print_function("FT_MEMCHR");
test_address(memchr(s1, 'b', 5), memchr(s1,'b', 5), test);
evaluate(test);
free(test);
}