This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:summer2015:data:projects:dln0 [2015/06/21 14:12] – [list operation status codes] wedge | haas:summer2015:data:projects:dln0 [2015/06/21 20:51] (current) – [node operation status codes] wedge | ||
---|---|---|---|
Line 84: | Line 84: | ||
# | # | ||
# | # | ||
- | # | + | # |
- | # | + | # |
// Function prototypes | // Function prototypes | ||
Line 105: | Line 105: | ||
* **DLN_DEFAULT_FAIL** - default state of unimplemented functions (default error) | * **DLN_DEFAULT_FAIL** - default state of unimplemented functions (default error) | ||
* **DLN_ERROR** - some error occurred | * **DLN_ERROR** - some error occurred | ||
- | * **DLN_RESERVED_CODE1** - reserved for future | + | * **DLN_INVALID** - invalid |
- | * **DLN_RESERVED_CODE2** - reserved for future use (not used at present time) | + | * **DLN_RESERVED_CODE** - reserved for future use (not used at present time) |
For example, in the case of " | For example, in the case of " | ||
* DLN_ERROR (a problem has occurred) | * DLN_ERROR (a problem has occurred) | ||
* DLN_MALLOC_FAIL (a problem has occurred when using malloc()) | * DLN_MALLOC_FAIL (a problem has occurred when using malloc()) | ||
- | * DLN_NULL (no memory allocated, so list cannot be anything but NULL) | + | * DLN_NULL (no memory allocated, so node cannot be anything but NULL) |
ALL THREE states must be returned from the function in question should such an occurrence take place. | ALL THREE states must be returned from the function in question should such an occurrence take place. | ||
Line 135: | Line 135: | ||
= Verifying Doubly-Linked Node Functionality | = Verifying Doubly-Linked Node Functionality | ||
==================================================== | ==================================================== | ||
- | | + | [mknode] Total: |
- | [cpnode] Total: | + | |
- | [rmnode] Total: | + | |
==================================================== | ==================================================== | ||
- | [RESULTS] Total: | + | [RESULTS] Total: |
==================================================== | ==================================================== | ||
lab46: | lab46: |