|
libcfe
0.12.1
some useful C-functions
|
#include <sys/types.h>Go to the source code of this file.
Macros | |
| #define | stringcompare(a, alen, b, blen) xstrcoll((const char *)a, alen, (const char *)b, blen) |
Functions | |
| int | xstrcoll (const char *a, size_t alen, const char *b, size_t blen) |
| int | str_compare (void *a, void *b) |
Definition at line 34 of file xstrcoll.h.
| int str_compare | ( | void * | a, |
| void * | b | ||
| ) |
xstrcoll Compares two '\0' terminated string, returning negative, zero, or positive depending on whether A compares less than, equal to, or greater than B.
| [in] | a | Void pointer to string A. |
| [in] | b | Void pointer to string B. |
Definition at line 22 of file xstrcoll.c.
| int xstrcoll | ( | const char * | a, |
| size_t | alen, | ||
| const char * | b, | ||
| size_t | blen | ||
| ) |
Compare two strings A and B, returning negative, zero, or positive depending on whether A compares less than, equal to, or greater than B.
| [in] | a | Pointer to string A. |
| [in] | alen | Length of string A (without terminating character). |
| [in] | b | Pointer to string B. |
| [in] | blen | Length of string B (without terminating character). |
Definition at line 27 of file xstrcoll.c.