Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: GoAskAlice
  • Content: Threads
  • Order by date
  1. GoAskAlice

    calloc error under C++ compiler (works fine with GCC)

    I am wondering why this code caused an error in C++ compiler under Windows when it compiles fine under Linux with GCC. typedef struct {int key; int digit; char string[24];}person; person *txPtr; if( (txPtr = calloc( store, sizeof(person) )) == NULL) { printf("txPtr:Insufficient memory\n")...
  2. GoAskAlice

    How to pull one character from file?

    Gosh, this sounds so easy! But, I am having serious problems. I wrote a file using fwrite to record 9 number sequences of 8 digits each in length. No seperators, just a long line of digits went into the file. Now, I want to pull a single digit from the file using fread but it really wont let...
  3. GoAskAlice

    Segmentation fault with File I/O

    Basically, I am learning C under Linux. What I am attempting is fwrite and fread functions on a file. The write program works without fault, but when I try and read the data back from the file, the data is displayed, but then at the end of it all it states 'Segmentation fault'. So, here is the...

Part and Inventory Search

Back
Top