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 :

+ Recent posts