Made the recommended changes now it says fgets has too few arguments to call and won't compile. Thanks for your help here is the updated code.
Code:
#include <stdio.h>
void seperate(char[]);
char date[6];
char month;
int day;
int main()
{
month = 0;
day = 0;
printf("Please input a month and date (i.e. JUN 10, MAY 22)\n\n");
fgets(date);
seperate(date[]);
printf("\n\nThe date you entered is %c, %d",&month, &day);
return 0;
}
void seperate(char *date)
{
sscanf(date, "%c %d",&month,&day);
printf("\n\nThe date you entered is %c, %d",&month, &day);
return;
}
I think I need a cprogramming for dummies book.