STRNCPY()
char *strncpy(char *destination, char *source, int n);
strncpy (string, ptr, 3);
* makes a copy of a maximum n characters taken from the string pointed to by
source and stores them in the location pointed to by destination
- if source contains fewer characters than n, all of them are copied. the
finishing null character is only added to the copied string if this character
is in n range
Last updated