D
Darklight
Thanks for that but at this stage i just want the program to work.Martin said:If the user enters 100 or more characters after the first prompt, the
first `fgets' will read 99 characters, store them in the buffer, and
append a '\0' character. The remaining (again up to 99) characters will
be read by the second `fgets' call, so the user never has a chance to
enter a second string in this case. Part of what the user considers the
first string will be stored in `b'.
If this is not clear, just try it. Enter more than 99 characters and see
what happens.
Martin
But now i am aware of the problem thanks.