Contact: aviboots(AT)netvision.net.il
39,880 questions
51,806 answers
573 users
#include <stdio.h> #include <string.h> #define SIZE 512 int main(void) { char src[SIZE] = "The code will be written "; char dest[SIZE] = "\0"; strncpy(dest, src, 13); puts(dest); return 0; } /* run: The code will */