CSM210: Systems Programming in C. Practical Session 1
Description
The task is to re-implement the C string library function strncpy(s, 
t, n) which copies the first int n characters from the 
character array s to the character array t. s 
and t are pointers to these arrays and the program is to work as 
follows: 
- The arrays must be manipulated using pointers and pointer arithmetic 
only. 
 
- The array s must be passed down to strncpy from the 
Operating System command line.
 
- Assume that n is hard-coded in the program, and not passed 
down from the command line.
 
Solution