yes they are functions i have to make. this is the problem:
Which is longer? (p:546 q:3)
a. Write a function lencmp() that has two string parameters. It should return 1 if the first string is longer than the second, 0 if they are the same length, and –1 if the second is longer.
b. Write a function longer() , that has two string parameters and return a value of type string. It should call lencmp() to compare the lengths of the two strings and return a pointer to the longer one.
c. Write a main program with a loop which compares the lengths of 3 string pairs entered by the user.
Use gets() to read string data.
Following are the prototypes for the required functions:

int lencmp (char[ ], char[ ]);
char * longer (char[ ], char[ ]);

When you run your program, the screen view will look like the following:

Enter the first string : Detroit Pistons
Enter the second string : Sacramento Kings
Sacramento Kings is longer.

Enter the first string : Detroit Pistons
Enter the second string : Chicago Bulls
Detroit Pistons is longer.
THIS IS WHAT I HAVE SO FAR:

#include <stdio.h>
int lencmp(char[]);
int main()
{

char firststring[15];
char secondstring[30];
char *longer(char[], char[]);
int size;

puts("Enter your first string:");
gets(firststring);

puts("Enter your second string:");
gets(secondstring);
size=lencmp(firststring);
/*printf("Your first string includes %i chars\n", size);*/
size=lencmp(secondstring);
/*printf("Your second string includes %i chars\n", size);*/
printf("%s\n,longer);
return 0;
}

int lencmp(char sentence[])

{

int size;
size=strlen(sentence);

return size;
}
IGNORE what is between the /* that's the program that tells you how many characters each string is but I need to just print out which one is longer. please help!