Contact: aviboots(AT)netvision.net.il
37,088 questions
48,466 answers
573 users
#include <windows.h> #include <string.h> #include <stdio.h> int main(void) { char s[64] = "c windows programming"; char dest[16]; strncpy_s(dest, _countof(dest), s, 9); printf("%s\n", dest); char ch = getchar(); return 0; } /* run: c windows */