Search:

Type: Posts; User: CommonTater

Search: Search took 0.03 seconds.

  1. No... #include "stdio.h" #include...

    No...



    #include "stdio.h"
    #include "string.h"
    #include "stdlib.h"
    struct stu {
    int sno;
    char sname[15];
  2. There might be multiple reasons why it keeps...

    There might be multiple reasons why it keeps going, including blank lines at the end of the file...

    You would be smarter to check strlen() on your str buffer and NULL in your fgets loop.


    ...
Results 1 to 2 of 2