see-programming is a popular blog that provides information on C programming basics, data structure, advanced unix programming, network programming, basic linux commands, interview question for freshers, video tutorials and essential softwares for students.
Saturday, 28 April 2012
strncpy example in C
char *strncpy(char *dest, char *src, int n);
It copies first n characters of string src to string dest. Returns string dest on success. Pads with '\0' if src has less than n characters