Hi, here I have a small function, that checks if the string doesn't exceed 10 characters - now I'm stuck with a problem - pointer... How should I tell that the value of the function is variable "nos" - I tried different variants, but it seems that I won't get more than just errors
Code:
char *string3 (char *s){
int n;
char *nos;
n=1;
printf("%s: ",s);
while (((scanf("%s",&nos)) != 1) || ((strlen(nos))>10))
{
clrscr();
while (getchar()!='\n');
printf ("Error nr. %d. Try again.\n%s: ",n,s);
n+=1;
}
}