#include "stddef.h"
Go to the source code of this file.
|
| #define | ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
| |
|
| const char * | strstri (const char *pString, const char *pToken) |
| | Return pointer to occurrence of substring in string. Case insensitive. More...
|
| |
| int | strcasecmp (const char *s1, const char *s2) |
| | A case-insensitive strcmp(). More...
|
| |
| void * | memmem (const void *haystack, size_t haystacklen, const void *needle, size_t needlelen) |
| |
| void * | memrchr (const void *s, int c, size_t n) |
| |
| int | memicmp (const void *buf1, const void *buf2, size_t len) |
| | Compare block of memory without case sensitivity. More...
|
| |
| char | hexchar (unsigned char c) |
| | Return hex character corresponding to given value. More...
|
| |
| signed char | unhex (char c) |
| | Return numeric value corresponding to given hex character. More...
|
| |
◆ ARRAY_SIZE
| #define ARRAY_SIZE |
( |
|
a | ) |
(sizeof(a) / sizeof((a)[0])) |
◆ hexchar()
Return hex character corresponding to given value.
- Parameters
-
| c | Value from 0-15, others are invalid |
- Return values
-
| char | Hex character '0'-'9', 'a'-'f' or '\0' if invalid |
◆ memicmp()
| int memicmp |
( |
const void * |
buf1, |
|
|
const void * |
buf2, |
|
|
size_t |
len |
|
) |
| |
Compare block of memory without case sensitivity.
◆ memmem()
| void* memmem |
( |
const void * |
haystack, |
|
|
size_t |
haystacklen, |
|
|
const void * |
needle, |
|
|
size_t |
needlelen |
|
) |
| |
◆ memrchr()
| void* memrchr |
( |
const void * |
s, |
|
|
int |
c, |
|
|
size_t |
n |
|
) |
| |
◆ strcasecmp()
| int strcasecmp |
( |
const char * |
s1, |
|
|
const char * |
s2 |
|
) |
| |
A case-insensitive strcmp().
- Note
- non-ANSI GNU C library extension
◆ strstri()
| const char* strstri |
( |
const char * |
pString, |
|
|
const char * |
pToken |
|
) |
| |
Return pointer to occurrence of substring in string. Case insensitive.
- Parameters
-
| [in] | pString | string to work with |
| [in] | pToken | string to locate |
- Return values
-
| const | char* pointer to first occurrence in of pToken in pString or NULL if not found |
◆ unhex()
| signed char unhex |
( |
char |
c | ) |
|
Return numeric value corresponding to given hex character.
- Parameters
-
| c | Character '0'-'9', 'a'-'f' or 'A'-'F' |
- Return values
-
| int8_t | Numeric value or -1 if character invalid |