#include <linklist.h>
DLL_Return DLL_SaveList(List *list, const char *path);
DLL_Return DLL_LoadList(List *list, const char *path,
int (*pFun)(Info *, Info *))
The value DLL_NULL_LIST, if returned, indicates that the list is empty; DLL_OPEN_ERROR indicates that the file could not be opened for writing; DLL_WRITE_ERROR indicates that there was an error while writing to the file meaning that the data in the list should not be trusted; DLL_NOT_MODIFIED indicates that the list has not been modified since the last save and no updating to the file was done; and DLL_NORMAL indicates that the function succeeded in its task.
Where the return value is
less than zero: arg1 < arg2, zero: arg1 == arg2, or greater than zero: arg1 > arg2.
Below is an example of this function:
int sort_foo(Info *record, Info *compare)
{
return(strcmp(rcrd->info_element,
cmp->info_element));
}
Carl J. Nobile 2012-01-17