Previous: 11.3 More Example Programs
Up: 11 String Processing
Next: 11.5 Summary
Previous Page: 11.3.3 Substrings
Next Page: 11.5 Summary
- Failure to include library header files, e.g. string.h. Prototypes for
library string routines are not included resulting in default assumptions and
consequent problems.
- We have already discussed common string related errors in
Chapter
and in
this chapter. Always allocate space for an array where a string is to be
stored. Once space is allocated for a string, pointer variables can be used to
access strings.
- Array names must not be used as Lvalues.