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

11.4 Common Errors

  1. 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.

  2. 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.

  3. Array names must not be used as Lvalues.

tep@wiliki.eng.hawaii.edu
Sat Sep 3 07:04:57 HST 1994