Please enable JavaScript in your browser! Home Explore Help Sign In Register xena / workshit SSH HTTPS Copy Need help cloning? Visit Help ! ZIP TAR.GZ Watch 1 Star 0 Fork 0 Work shit Branch: master Branches & Tags Branches Tags master workshit src string_compare_guy.c string_compare_guy.c 1.1KB History Raw #include <stdio.h> #include <stdlib.h> #include <string.h> // string_compare_guy compares the contents of the left hand side, length with the contents of the // right hand side, length and returns 1 if the right hand side (needle) is inside the left hand // side (haystack). static int string_compare_guy(char* lhs, int llength, char* rhs, int rlength) { char* lnz = malloc(llength + 1); memcpy(lnz, lhs, llength); lnz[llength] = 0; char* rnz = malloc(rlength + 1); memcpy(rnz, rhs,...