请输入您要查询的百科知识:

 

词条 setmem
释义

原型:extern void setmem(void *buf, unsigned int count, char ch);

用法:#include <string.h>

功能:把buf所指内存区域前count个字节设置成字符ch。

说明:返回指向buf的指针。

举例:

// setmem.c

#include <syslib.h>

#include <string.h>

main()

{

char *s="Golden Global View";

clrscr();

setmem(s,6,'G');

printf("%s",s);

getchar();

return 0;

}

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/1 12:17:14