#include <stdio.h>
#include <string.h>
#include <ctype.h>

int nocasecmp(const char *s1, const char *s2) {
    while (tolower(*s1) == tolower(*s2)) {
    	printf("%c == %c\n", *s1, *s2);
        if (0 == *s1++ == *s2++) return 0;
    }
    return tolower(*s1) - tolower(*s2);
}


int main(void) {
	printf("%d", nocasecmp("LG", "la"));
	return 0;
}
