4381bb2a22
When the execution reaches the end of the main functions, they implicitly return a successful status.
11 lines
353 B
C
11 lines
353 B
C
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
printf("%s\n", strstr("In relibc we trust", "rust"));
|
|
printf("%s\n", strstr("In relibc we trust", "libc"));
|
|
printf("%s\n", strstr("In relibc we trust", "bugs"));
|
|
printf("%s\n", strstr("IN RELIBC WE TRUST", "rust"));
|
|
printf("%s\n", strcasestr("IN RELIBC WE TRUST", "rust"));
|
|
}
|