int main( int argc, char ** argv ) { printf("%s\n",USAGE); char * str = "This is a string we will test the last index for."; test_strrindex(str,'t'); test_strrindex(str,'z'); test_strrindex(str,'r'); test_strrindex("r",'r'); test_strrindex("",'z'); return 0; }
int main() { test_strrindex("Hi Bart I am weaving on a loom", "a"); test_strrindex("Hi Bart I am weaving on a loom", "Hi"); test_strrindex("Test data test data data", "data"); test_strrindex("ccccc", "c"); test_strrindex("ccccc", "C"); test_strrindex("Flenin", "not"); test_strrindex("First sentence. Second sentence.", "."); test_strrindex("eenie meenie something moe", "eenie"); return 0; }