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 SkipVought 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: *

  1. strack

    Why does this code allocate too much space?

    Thanks for your help. It was a null terminator problem.
  2. strack

    Why does this code allocate too much space?

    I have just begun learning pointer operations, and am attempting to create a function that will reverse a string. For some reason, however, revString is always allocated with an extra 4-5 bytes. The code is below, and I would appreciate anyone's help. char *strrev(char *string) { int...
  3. strack

    Problem with deconstructors

    I have a small class that I'd like to be able to write data to. However, whenever I invoke the write function, I receive an error upon deallocation. I know I'm doing something wrong with memory management (because it works fine for my character arrays), but I can't seem to figure out what. I...

Part and Inventory Search

Back
Top