Using CSPs: General Processes
To provide more concise, more readable code, some principles of good programming practice are not always followed in the following example programs. In particular:
- Only limited error responses are shown. Well-written, complete programs check returned error codes and perform appropriate actions when an error is encountered.
- Only limited memory and resource management is done. Well-written, complete programs destroy all keys and hashes, free all allocated memory, close all files, and release all handles. These example programs provide only limited demonstrations of the use of functions that perform these tasks. These example programs perform no memory or resource management tasks in the case of program termination due to errors.
The following topics present general information about procedure examples and sample code.