#include <string.h>
void *memcpy
(void * s1 , void *
s2 , size_t n
);
The memcpy function copies n characters from the object pointed to by s2 into the object pointed to by s1. If copying takes place between objects that overlap, the behavior is undefined.
The memcpy function returns the value of s1.
The memcpy function is implemented in line using the MOV instruction.
#include <string.h>
void *memmove
(void * s1 , void *
s2 , size_t n
);
The memmove function copies n characters from the object pointed to by s2 into the object pointed to by s1. Copying takes place as if the n characters from the object pointed to by s2 are first copied into a temporary array of n characters that does not overlap the objects pointed to by s1 and s2, and then the n characters from the temporary array are copied into the object pointed to by s1.
The memmove function returns the value of s1.
None.
#include <string.h>
void *strcpy
(char * s1 , char *
s2 );
The strcpy function copies the string pointed to by s2 (including the terminating null character) into the array pointed to by s1. If copying takes place between objects that overlap then the behavior is undefined.
The strcpy function returns the value of s1.
None.
#include <string.h>
void *strncpy
(char * s1 , char *
s2 , size_t n
);
The strncpy function copies not more than n characters (characters that follow a null character are not copied) from the array pointed to by s2 to the array pointed to by s1. If copying takes place between objects that overlap, the behavior is undefined.
The strncpy function returns the value of s1.
None.