Search:

Type: Posts; User: Mark Ahmadi

Search: Search took 0.01 seconds.

  1. fscanf segmentation fault with IO redirection, works with fopen

    I'm working on a program that takes records stored in a file and puts them into structures. I have the program scanning, storing, and printing the records when I open a file with fopen and pass the...
  2. Ok I sidestepped the problem by breaking out of...

    Ok I sidestepped the problem by breaking out of the printing loop if the next char was a space and the last char is a digit. I'll keep working on it to actually try to fix it.

    As for the other...
  3. I apologize, but I don't quite understand what...

    I apologize, but I don't quite understand what you are talking about with point 2.
  4. I actually have no declarations outside of the...

    I actually have no declarations outside of the individual functions. As for the array, it should be an array of 36 user entered characters. I'm using fseek to get 36 characters and feeding it to an...
  5. Printing contents of a file...prints one extra character not present in the file.

    Hello,
    I'm writing a program that stores records into a file and then these records can be printed out. A last name, first name, and score is stored to be exactly 36 characters long (using leading...
Results 1 to 5 of 5