Functions HI-TECH C MEMSET
MEMSET, MEMCPY, MEMCMP, MEMMOVE,MEMCHR
#include <string.h> void memset(void s, char c, size_t n) void * memcpy(void * d, void * s, size_t n) int memcmp(void * s1, void * s2, size_t n) void * memmove(void * s1, void * s2, size_t n) void * memchr(void * s, int c, size_t n)
Memset() initializes n bytes of memory starting at the location pointed to by s with the character c. Memcpy() copies n bytes of memory starting from the location pointed to by s to the block of memory pointed to by d. The result of copying overlapping blocks is undefined. Memcmp() compares two blocks of memory, of length n, and returns a signed value similar to strncmp(). Unlike strncmp() the comparision does not stop on a null character. The ascii collating sequence is used for the comparision, but the effect of including non-ascii characters in the memory blocks on the sense of the return value is indeterminate. Memmove() is similar to memcpy() except copying of overlapping blocks is handled correctly. The memchr() function locates the first occurence of c (converted to unsigned char) in the initial n characters of the object pointed to by s.
strncpy, strncmp, strchr
NOTE from editor
MEMCHR is lacked in original manual text as a function name and corrected in this WIKI.