Posts

Showing posts from September, 2022

strncpy, strncat

 library functions always returns pointer to the char. Mostly pointing to the destination buffer for ex: char * strncat(char *, char *, size_t); 1st param is destination 2nd is source 3d is size n mostly there pose problems like non NULL terminated, buffer over run, array overlapping or dest size less than source source does not have null char within n