4381bb2a22
When the execution reaches the end of the main functions, they implicitly return a successful status.
12 lines
322 B
C
12 lines
322 B
C
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
printf("%d\n", strncmp("a", "aa", 2));
|
|
printf("%d\n", strncmp("a", "aä", 2));
|
|
printf("%d\n", strncmp("\xFF", "\xFE", 2));
|
|
printf("%d\n", strncmp("", "\xFF", 1));
|
|
printf("%d\n", strncmp("a", "c", 1));
|
|
printf("%d\n", strncmp("a", "a", 2));
|
|
}
|