Hi all,
I started to program with C and have some programming in JAVA. However, I have a small understanding problem with the following simple code below.
I understand that at the command "while (isspace(ch=getc(in)))" the programm reads till if founds a character that is either a " or a blank. This symbol is assigned to the variable delim.
Is it then correct to say that the program starts again at the same position as before and continues to read the string till "((ch=getc(in))!=delim)" is fulfilled?

Code:
void getString(FILE* in, char str[]){
    char ch, delim;
    int n=0;
    str[0]='\0';
    while (isspace(ch=getc(in)));
    if (ch==EOF) {
        return;
    }
    delim=ch;

    while (((ch=getc(in))!=delim) && (ch!=EOF))
        str[n++]=ch;
    str[n]='\0';
}
Here ist the small input file:
"Result A" 4
"Result B" 5

Many thanks, Andi