int getindex( char *s ){
int i;
char day[7][10]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
for(i=0;i<=6;i++){
if(strcmp(s,day[i])==0){
break;
}
}
if(i==7){
i=-1;
}
return i;
}
int getindex( char *s ){
int i;
char day[7][10]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
for(i=0;i<=6;i++){
if(strcmp(s,day[i])==0){
break;
}
}
if(i==7){
i=-1;
}
return i;
}