C
[C] 226 문자열을 NULL로 채우기 strset
qkrwngus
2021. 2. 7. 16:08
Desc :
char* strset(char *stirng, int c);
string - 채워질 버퍼
c - 채울 문자
Source Code :
#include <stdio.h>
#include <string.h>
void main()
{
char buff[] = "암호는 1234";
puts(buff);
strset(buff, 0);
printf("[%s]\n", buff);
}
Result :