#include stdio.h#include string.hint main () {char str[50];strcpy(str,This is string.h library function);
编程学习网为您整理以下代码实例,主要实现:C语言库memset()函数,希望可以帮到各位朋友。
#include <stdio.h>
#include <string.h>
int main () {
char str[50];
strcpy(str,"This is string.h library function");
puts(str);
memset(str,'$',7);
puts(str);
return(0);
}