strings.h
|
int bcmp(const void *s1, const void *s2, size_t n)
|
Compares byte sequences.
|
strings.h
|
void bcopy(const void *src, void *dest, size_t n)
|
Copies byte sequences.
|
strings.h
|
void bzero(void *s, size_t n)
|
Sets byte sequences to zero.
|
string.h
|
void *memccpy(void *dest, const void *src, int c, size_t n)
|
Copies the first n bytes from the source memory area pointed to by src to the destination memory area pointed to by dest. The copy checks whether a character specified by c is found. If c is found, this function returns the next character of character c in the destination memory area.
|
string.h
|
void *memchr(const void *s, int c, size_t n)
|
Searches for the first occurrence of the character specified by c in the n-byte memory area pointed to by s.
|
string.h
|
int memcmp(const void *s1, const void *s2, size_t n)
|
Compares two memory areas.
|
string.h
|
void *memcpy(void *dest, const void *src, size_t n)
|
Copies n bytes from the source memory area pointed to by src to the destination memory area pointed to by dest.
|
string.h
|
void *memmem(const void *haystack, size_t haystacklen, const void *needle, size_t needlelen)
|
Searches for a needle string in its haystack string.
|
string.h
|
void *memmove(void *dest, const void *src, size_t n)
|
Copies n bytes from the source memory area pointed to by src to the destination memory area pointed to by dest.
|
string.h
|
void *mempcpy(void *dest, const void *src, size_t n)
|
Copies n bytes from the source memory area pointed to by src to the destination memory area pointed to by dest.
|
string.h
|
void *memset(void *s, int c, size_t n)
|
Copies a character to the specified memory area.
|
stdlib.h
|
void *malloc(size_t size)
|
Dynamically allocates a memory block of size.
|
stdlib.h
|
void *calloc(size_t nmemb, size_t size)
|
Dynamically allocates nmemb memory blocks of size.
|
stdlib.h
|
void *realloc(void *ptr, size_t size)
|
Changes the size of the memory block pointed to by ptr to size bytes.
|
stdlib.h/malloc.h
|
void *valloc(size_t size)
|
Allocates a block of memory with the specified size and aligns the allocated memory by page size.
|
stdlib.h
|
void free(void *ptr)
|
Releases the memory space pointed to by ptr.
|
malloc.h
|
size_t malloc_usable_size(void *ptr)
|
Obtains the size of the memory block pointed to by ptr.
|
unistd.h
|
int getpagesize(void)
|
Obtains the page size.
|
unistd.h
|
void *sbrk(intptr_t increment)
|
Changes the data segment size.
|