Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
Go to the source code of this file.
Macros | |
#define | ALIGN (sizeof(size_t)) |
#define | ONES ((size_t)-1 / UCHAR_MAX) |
#define | HIGHS (ONES * (UCHAR_MAX / 2 + 1)) |
#define | HASZERO(x) ((x)-ONES & ~(x)&HIGHS) |
Functions | |
char * | __strchrnul (const char *s, int c) |
#define ALIGN (sizeof(size_t)) |
Definition at line 8 of file strchrnul.c.
Definition at line 11 of file strchrnul.c.
Definition at line 10 of file strchrnul.c.
#define ONES ((size_t)-1 / UCHAR_MAX) |
Definition at line 9 of file strchrnul.c.
char* __strchrnul | ( | const char * | s, |
int | c | ||
) |
Definition at line 13 of file strchrnul.c.
References ALIGN, HASZERO, ONES, and strlen().
Referenced by strchr(), and strcspn().