strcmp

This is a discussion on strcmp within the C Programming forums, part of the General Programming Boards category; Hey, I have a huge assignment but there is a small part I'm confused about how to write it.
I ...

strcmp

Hey, I have a huge assignment but there is a small part I'm confused about how to write it.

I want to make a method

Code:

#include <string.h>
int findMonth(char month[30]) {
if(month.strcmp("JANUARY")
return 1;
elseif(month.strcmp("FEBRUARY")
return 2;
...
}
what exactly is the name of the function of what I'm trying to accomplish. THanks in advance.