C Programming Language


char *strncpy( char *to, const char *from,size_t count );

                    strncpy(str1,str2,n) copies up to n characters from the string pointed to by str2 to the string pointed to by str1 and terminates str1 with a null. The str2 must be a pointer to a null terminated string.


strncpy() function Hi, There is a small mistake in this program. Do you know ? Here is the currect value of str1- "experProgramming".Sorry!!!  
strcpy() Home strcmp()
c program stats