String Functions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to compile and run exisitng embedded C/C++ code in VC++. I have
problems in strcpy functions. When it reaches this step, it abruptly stops
the program. Any idea?
I am trying to understand where to learn the alternative functions.

Thanks

Srini.G
 
I am trying to compile and run exisitng embedded C/C++ code in VC++. I have
problems in strcpy functions. When it reaches this step, it abruptly stops
the program.

It exits with no error?
Any idea?

Sounds like you've got a bug in the code somewhere; most likely the
strcpy is writing past the end of a buffer, or to an uninitialized
pointer, but the problem may be something that happened earlier in the
execution of your program and corrupted the stack or heap. Using the
debugger should help you find the problem.
I am trying to understand where to learn the alternative functions.

In C++ you generally use std::vector and std::string. A good C++ book
is the best place to start. Check out the reviews on www.accu.org

Tom
 
Back
Top