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:

Solution