int needlen = strlen(needle);
int needlen; if (!needle || !haystack)	        return 0; needlen = strlen(needle);
static int in_commasep_string(char *needle, char *haystack, int haylen){    int needlen = strlen(needle);    while (1) {	/*	 * Is it at the start of the string?	 */	if (haylen >= needlen &&       /* haystack is long enough */	    !memcmp(needle, haystack, needlen) &&	/* initial match */	    (haylen == needlen || haystack[needlen] == ',')	    /* either , or EOS follows */	    )	    return 1;	/*	 * If not, search for the next comma and resume after that.	 * If no comma found, terminate.	 */	while (haylen > 0 && *haystack != ',')	    haylen--, haystack++;	if (haylen == 0)	    return 0;	haylen--, haystack++;	       /* skip over comma itself */    }}