github.com/ggreg80/ketos@v0.0.0-20171109040536-049616f51ddb/testdata/inject-libc/taste.c (about)

     1  #include <string.h>
     2  #include <stdio.h>
     3  
     4  
     5  int main() {
     6  
     7  	char const *hello = "hello, world!";
     8  	char *ind = strrchr(hello, 'w');
     9  	printf("last char is at %li\n", ind - hello);
    10  
    11  	return 0;
    12  }