Load a server sort order.
DBSORTORDER *dbloadsort(dbproc) DBPROCESS *dbproc;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.
A pointer to a DBSORTORDER structure on success, NULL on error.
dbloadsort provides information about the sort order of the server’s character set. This information can be used by dbstrcmp or dbstrsort to compare two character strings.
dbloadsort allocates a DBSORTORDER structure to contain the server character set sort order information. The structure is freed using dbfreesort.
The following code fragment illustrates the use of dbloadsort:
sortorder = dbloadsort(dbproc);
retval = dbstrcmp(dbproc, "ABC", 3, "abc", 3,
sortorder);
printf("ABC dbstrcmp’ed with abc yields %d.\n",
retval);
retval = dbstrcmp(dbproc, "abc", 3, "ABC", 3,
sortorder);
printf("abc dbstrcmp’ed with ABC yields %d.\n",
retval);
dbfreesort(dbproc, sortorder);