#include <sys/types.h>
Go to the source code of this file.
Defines | |
#define | _ABLE_CLIB_STRINGS_H 1 |
Functions | |
void | bcopy (const void *src, void *dest, size_t sz) |
Copy an array of bytes. | |
void | bzero (void *area, size_t sz) |
Set an area of memory to zero. | |
int | bcmp (const void *s1, const void *s2, size_t n) |
Compare two memory areas. | |
int | strcasecmp (const char *s1, const char *s2) |
Compare two strings ignoring their case. | |
int | strncasecmp (const char *s1, const char *s2, size_t len) |
Compare two strings ignoring their case, potentially bounded by length. |
#define _ABLE_CLIB_STRINGS_H 1 |
int bcmp | ( | const void * | s1, | |
const void * | s2, | |||
size_t | n | |||
) |
Compare two memory areas.
This function compares two areas of memory.
s1 | The first memory area. | |
s2 | The second memory area. | |
n | The length of memory to compare. |
void bcopy | ( | const void * | src, | |
void * | dest, | |||
size_t | sz | |||
) |
Copy an array of bytes.
This function copies sz bytes from src to dst. The src and dst areas may overlap.
src | The source byte array. | |
dest | The target byte array. | |
sz | The number of bytes to transfer. |
void bzero | ( | void * | area, | |
size_t | sz | |||
) |
Set an area of memory to zero.
This function sets sz bytes of memory pointed to by area to zero.
area | The memory to clear. | |
sz | The number of bytes to clear. |
int strcasecmp | ( | const char * | s1, | |
const char * | s2 | |||
) |
Compare two strings ignoring their case.
int strncasecmp | ( | const char * | s1, | |
const char * | s2, | |||
size_t | len | |||
) |
Compare two strings ignoring their case, potentially bounded by length.