 
                            ...
The standard functions strncpy() and strncat() copy a specified number of characters n from a source string to a destination array. If In case of strncpy(), if there is no null character in the first n characters of the source array, the result will not be null-terminated and any remaining characters are truncated.
...