Edit: I\'ve added the source for the example.
I came across this example:
char source[MAX] = \"123456789\"; char source1[MAX] = \"12
the strncpy is a safer version of strcpy as a matter of fact you should never use strcpy because its potential buffer overflow vulnerability which makes you system vulnerable to all sort of attacks