commit
This commit is contained in:
12
C_04/git/tests_C04/ex00.c
Normal file
12
C_04/git/tests_C04/ex00.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
#include "../ex00/ft_strlen.c"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
char *a = "12345678";
|
||||
char b[1];
|
||||
|
||||
b[0] = 0;
|
||||
printf("Test\nexpected : 8 | result : %d\n", ft_strlen(a));
|
||||
printf("Test\nexpected : 0 | result : %d\n", ft_strlen(b));
|
||||
}
|
||||
Reference in New Issue
Block a user