17 lines
296 B
Plaintext
17 lines
296 B
Plaintext
#include <stdio.h>
|
|
#define STR1 "hellb"
|
|
#define STR2 "hello"
|
|
|
|
int main(void)
|
|
{
|
|
int result;
|
|
|
|
printf("'%s' VS '%s'\n", STR1, STR2);
|
|
result = ft_strcmp(STR1, STR2);
|
|
if(!result)
|
|
printf("Strings are the same (0)\n");
|
|
else
|
|
printf("Strings are different (offset=%d)\n", result);
|
|
return (0);
|
|
}
|