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

/* Determine whether string s is longer than string t */
/* WARNING: This function is buggy */
int strlonger(char *s, char *t) {
    	return (int) strlen(s) - (int) strlen(t) > 0;
}


int main()
{
	char str1[] = "long";
	char str2[] = "longer";

	if (strlonger(str1, str2) ) {
		printf("str1 is longer\n");
	} else if (strlonger(str2, str1) ) {
		printf("str2 is longer\n");
	}
	else {
		printf("str1 and str2 are of equal length\n");
	}
	return 0;
}

