How to use strcpy_s (strcpy) in windows with C

1 Answer

0 votes
#include <windows.h>
#include <stdio.h>
#include <stdlib.h> 

int main() {
    char buffer[64];

    strcpy_s(buffer, _countof(buffer), "strcpy_s - c windows programming");
    
    printf("%s\n", buffer);

    char ch = getchar();

    return 0;
}
 



/*
run:

strcpy_s - c windows programming

*/

 



answered Apr 4, 2022 by avibootz

Related questions

1 answer 114 views
114 views asked Dec 7, 2022 by avibootz
2 answers 259 views
1 answer 130 views
130 views asked Dec 18, 2022 by avibootz
2 answers 184 views
...