I don't know what it is you want to do, so I only got rid of the warnings/errors.
Code:
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
#include<string.h>
typedef char* token_t ;
typedef token_t token;
int get_next_token();
int article (token str);
int count=0;
int main()
{
int y;
y = get_next_token();
if(y==0)
printf("No Article \n");
else
printf("GOOD PHRASE %d",count);
return(0);
}
/*******************************/
int get_next_token()
{
token string[30];
token str1[10];
int i=0,x;
printf("Enter the sentence\n");
scanf("%s",string);
while( isspace((int)string[i]) )
{
str1[i] = string[i] ;
i++;
}
x = article( (char*) str1 );
if(x==0)
return(0);
else
return(0);
}
/* the following function returns 1 if there is article otherwise it returns 0*/
int article (token str)
{
if( (strcmp(str,"The")==0) || (strcmp( str, "A") == 0) || (strcmp(str,"the")==0) || (strcmp(str,"a") ==0))
return(1);
else
return(0);
}