C++ memset函数用法
#include<stdio.h>
#include<string.h>
int main(){
char buffer[] = "I love you!";
printf("%s\n",buffer);
memset(buffer,'*',strlen(buffer));
printf("%s\n",buffer);
}
#include<string.h>
int main(){
char buffer[] = "I love you!";
printf("%s\n",buffer);
memset(buffer,'*',strlen(buffer));
printf("%s\n",buffer);
}