13 lines
386 B
C
13 lines
386 B
C
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char* argv[]) {
|
|
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"));
|
|
|
|
return 0;
|
|
}
|