2
0

strstr.c 380 B

123456789101112
  1. #include <string.h>
  2. #include <stdio.h>
  3. #include "test_helpers.h"
  4. int main(void) {
  5. printf("%s\n", strstr("In relibc we trust", "rust"));
  6. printf("%s\n", strstr("In relibc we trust", "libc"));
  7. printf("%s\n", strstr("In relibc we trust", "bugs"));
  8. printf("%s\n", strstr("IN RELIBC WE TRUST", "rust"));
  9. printf("%s\n", strcasestr("IN RELIBC WE TRUST", "rust"));
  10. }