#include char *strnset(char *s, int ch, size_t n); strnset 함수는 문자열을 n 크기만큼 주어진 문자로 초기화합니다. Initializes characters of a string to a given character. 비주얼스튜디어에서는 strnset 함수 대신에 _strnset 함수를 사용해야 합니다. #define _CRT_SECURE_NO_WARNINGS #include #include int main() { char s[]= "Initializes characters of a string to a given character."; _strnset(s, 'x', strlen(s)); printf("%s\n", s); return 0; }