C语言函数大全_第1页
C语言函数大全_第2页
C语言函数大全_第3页
C语言函数大全_第4页
C语言函数大全_第5页
已阅读5页,还剩24页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

函数名:abort功能:异常终止一个进程用法:voidabort(void)函数名:abs功能:求整数的绝对值用法:intabs(inti)函数名:absread,abswirte功能:绝对磁盘扇区读、写数据用法:intabsread(intdrive,intnsects,intsectno,void*buffer)intabswrite(intdrive,intnsects,intsectno,void*buffer函数名:access功能:确定文件的访问权限用法:intaccess(constchar*,intamode)函数名:acos功能:反余弦函数用法:doubleacos(doublex)函数名:allocmem功能:分配DOS存储段用法:国allocmem(unsignedsize,unsigned*seg)函数名:arc功能:画一弧线用法山~fararc(intx,inty,intstangle,intendangle,intradius)函数名:asctime功能:转换日期与时间为ASCII码用法:9「*asctime(conststructtm*tblock)函数名:asin功能:反正弦函数用法:doubleasin(doublex)函数名:assert功能:测试一个条件并可能使程序终止用法山~assert(inttest)函数名:atan功能:反正切函数用法:doubleatan(doublex)函数名:atan2功能:计算Y/X的反正切值用法:doubleatan2(doubley,doublex)函数名:atexit功能:注册终止函数用法:intatexit(atexit_tfunc)函数名:atof功能:把字符串转换成浮点数用法"。口卬6atof(constchar*nptr)函数名:atoi功能:把字符串转换成长整型数用法:intatoi(constchar*nptr)函数名:atol功能:把字符串转换成长整型数用法:longatol(constchar*nptr)函数名:bar功能:画一个二维条形图用法:voidfarbar(intleft,inttop,intright,intbottom)函数名:bar3d功能:画一个三维条形图用法丫。1~farbar3d(intleft,inttop,intright,intbottom,intdepth,inttopflag)函数名:bdos功能:DOS系统调用用法:intbdos(intdosfun,unsigneddosdx,unsigneddosal)函数名:bdosptr功能:DOS系统调用用法:intbdosptr(intdosfun,void*argument,unsigneddosal)函数名:bioscom功能:串行I/O通信用法:国bioscom(intcmd,charabyte,intport)函数名:biosdisk功能:软硬盘I/O用法:国biosdisk(intcmd,intdrive,inthead,inttrack,intsectorintnsects,void*buffer)函数名:biosequip功能:检查设备用法:国biosequip(void)函数名:bioskey功能:直接使用BIOS服务的键盘接口用法:国bioskey(intcmd)函数名:biosmemory功能:返回存储块大小用法:国biosmemory(void)函数名:biosprint功能:直接使用BIOS服务的打印机I/O用法:国biosprint(intcmd,intbyte,intport)函数名:biostime功能:读取或设置BIOS时间用法:longbiostime(intcmd,longnewtime)函数名:brk功能:改变数据段空间分配用法:国brk(void*endds)函数名:bsearch功能:二分法搜索用法山~*bsearch(constvoid*key,constvoid*base,size_t*nelem,size_twidth,int(*fcmp)(constvoid*,const*))函数名:cabs功能:计算复数的绝对值用法:doublecabs(structcomplexz);函数名:calloc功能:分配主存储器用法山~*calloc(size_tnelem,size_telsize);函数名:ceil功能:向上舍入用法:doubleceil(doublex);函数名:cgets功能:从控制台读字符串用法:char*cgets(char*str)函数名:chdir功能:改变工作目录用法:intchdir(constchar*path);函数名:_chmod,chmod功能:改变文件的访问方式用法:intchmod(constchar*,intpermiss);函数名:chsize功能:改变文件大小用法:intchsize(inthandle,longsize);函数名:circle功能:在给定半径以(x,y)为圆心画圆用法:voidfarcircle(intx,inty,intradius);函数名:cleardevice功能:清除图形屏幕用法:voidfarcleardevice(void);函数名:clearerr功能:复位错误标志用法丫。1~clearerr(FILE*stream);函数名:clearviewport功能:清除图形视区用法:voidfarclearviewport(void);函数名:_close,close功能:关闭文件句柄用法:国close(inthandle);函数名:clock功能:确定处理器时间用法:clock_tclock(void);函数名:closegraph功能:关闭图形系统用法:voidfarclosegraph(void);函数名:clreol功能:在文本窗口中清除字符到行末用法山~clreol(void)函数名:clrscr功能:清除文本模式窗口用法山~clrscr(void);函数名:coreleft功能:返回未使用内存的大小用法:unsignedcoreleft(void);函数名:cos功能:余弦函数用法"。口卬6cos(doublex);函数名:cosh功能:双曲余弦函数用法:dlublecosh(doublex);函数名:country功能:返回与国家有关的信息用法:structCOUNTRY*country(intcountrycode,structcountry*country);函数名:cprintf功能:送格式化输出至屏幕用法:访1cprintf(constchar*format[,argument,、、、]);函数名:cputs功能:写字符到屏幕用法:voidcputs(constchar*string);函数名:_creatcreat功能:创建一个新文件或重写一个已存在的文件用法:intcreat(constchar*,intpermiss)函数名:creatnew功能:创建一个新文件用法:国creatnew(constchar*,intattrib);函数名:cscanf功能:从控制台执行格式化输入用法:访1cscanf(char*format[,argument,、、、]);函数名:ctime功能:把日期与时间转换为字符串用法:9「*ctime(consttime_t*time);函数名:ctrlbrk功能:设置Ctrl-Break处理程序用法:voidctrlbrk(*fptr)(void);函数名:delay功能:将程序的执行暂停一段时间(毫秒)用法:voiddelay(unsignedmilliseconds);函数名:delline功能:在文本窗口中删去一行用法:voiddelline(void);函数名:detectgraph功能:通过检测硬件确定图形驱动程序与模式用法:voidfardetectgraph(intfar*graphdriver,intfar*graphmode);函数名:difftime功能:计算两个时刻之间的时间差用法:doubledifftime(time_ttime2,time_ttime1);函数名:disable功能:屏蔽中断用法山~disable(void);函数名:div功能:将两个整数相除,返回商与余数用法"21(intnumber,intdenom);函数名:dosexterr功能:获取扩展DOS错误信息用法:intdosexterr(structDOSERR*dblkp);函数名:dostounix功能:转换日期与时间为UNIX时间格式用法:longdostounix(structdate*dateptr,structtime*timeptr);函数名:drawpoly功能:画多边形用法:voidfardrawpoly(intnumpoints,intfar*polypoints);函数名:dup功能:复制一个文件句柄用法:intdup(inthandle);函数名:dup2功能:复制文件句柄用法:intdup2(intoldhandle,intnewhandle);函数名:ecvt功能:把一个浮点数转换为字符串用法:charecvt(doublevalue,intndigit,int*decpt,int*sign);函数名:ellipse功能:画一椭圆用法山~farellipse(intx,inty,intstangle,intendangle,intxradius,intyradius);函数名:enable功能:开放硬件中断用法:voidenable(void);函数名:eof功能:检测文件结束用法:inteof(int*handle);函数名:exec、、、功能:装入并运行其它程序的函数用法:intexecl(char*pathname,char*arg0,arg1,、、、,argn,NULL);intexecle(char*pathname,char*arg0,arg1,、、、,argn,NULL,char*envp[]);intexeclp(char*pathname,char*arg0,arg1,、、,NULL);intexecple(char*pathname,char*arg0,arg1,、、、,NULL,char*envp[]);intexecv(char*pathname,char*argv[]);intexecve(char*pathname,char*argv[],char*envp[]);intexecvp(char*pathname,char*argv[]);intexecvpe(char*pathname,char*argv[],char*envp[]);函数名:exit功能:终止程序用法:voidexit(intstatus);函数名:exp功能:指数函数用法:doubleexp(doublex);函数名:gcvt功能:把浮点数转换成字符串用法:char*gcvt(doublevalue,intndigit,char*buf);函数名:geninterrupt功能:产生一个软中断用法:voidgeninterrupt(intintr_num);函数名:getarccoords功能:取得最后一次调用arc的坐标用法:voidfargetarccoords(structarccoordstypefar*arccoords);函数名:getaspectratio功能:返回当前图形模式的纵横比用法:voidfargetaspectratio(intfar*xasp,intfar*yasp);函数名:getbkcolor功能:返回当前背景颜色用法:intfargetbkcolor(void);函数名:getc功能:从流中取字符用法:intgetc(FILE*stream);函数名:getcbrk功能:获取Control_break设置用法:intgetcbrk(void);函数名:getch功能:从控制台无回显地取一个字符用法:intgetch(void);函数名:getchar功能:从stdin流中读字符用法:intgetchar(void);函数名:getche功能:从控制台取字符(带回显)用法:intgetche(void);函数名:getcolor功能:返回当前画线颜色用法:intfargetcolor(void);函数名:getcurdir功能:取指定驱动器的当前目录用法:intgetcurdir(intdrive,char*direc);函数名:getcwd功能:取当前工作目录用法:char*getcwd(char*buf,intn);函数名:getdate功能:取DOS日期用法:voidgetdate(struct*dateblk);函数名:getdefaultpalette功能:返回调色板定义结构用法:structpalettetype*fargetdefaultpalette(void);函数名:getdisk功能:取当前磁盘驱动器号用法:intgetdisk(void);函数名:getdrivername功能:返回指向包含当前图形驱动程序名字的字符串指针用法:char*getdrivename(void);函数名:getdta功能:取磁盘传输地址用法:charfar*getdta(void);函数名:getenv功能:从环境中取字符串用法:char*getenv(char*envvar);函数名:getfat,getfatd功能:取文件分配表信息用法:voidgetfat(intdrive,structfatinfo*fatblkp);函数名:getfillpattern功能:将用户定义的填充模式拷贝到内存中用法:voidfargetfillpattern(charfar*upattern);函数名:getfillsettings功能:取得有关当前填充模式与填充颜色的信息用法:voidfargetfillsettings(structfillsettingstypefar*fillinfo);函数名:getftime功能:取文件日期与时间用法:intgetftime(inthandle,structftime*ftimep);函数名:getgraphmode功能:返回当前图形模式用法:intfargetgraphmode(void);函数名:getftime功能:取文件日期与时间用法:intgetftime(inthandle,structftime*ftimep);函数名:getgraphmode功能:返回当前图形模式用法:intfargetgraphmode(void);函数名:getimage功能:将指定区域的一个位图存到主存中用法:voidfargetimage(intleft,inttop,intright,intbottom,voidfar*bitmap);函数名:getlinesettings功能:取当前线型、模式与宽度用法:voidfargetlinesettings(structlinesettingstypefar*lininfo):函数名:getmaxx功能:返回屏幕的最大x坐标用法:intfargetmaxx(void);函数名:getmaxy功能:返回屏幕的最大y坐标用法:intfargetmaxy(void);函数名:getmodename功能:返回含有指定图形模式名的字符串指针用法:char*fargetmodename(intmode_name);函数名:getmoderange功能:取给定图形驱动程序的模式范围用法:voidfargetmoderange(intgraphdriver,intfar*lomode,intfar*himode);函数名:getpalette功能:返回有关当前调色板的信息用法:voidfargetpalette(structpalettetypefar*palette);函数名:getpass功能:读一个口令用法:char*getpass(char*prompt);函数名:getpixel功能:取得指定像素的颜色用法:intfargetpixel(intx,inty);函数名:gets功能:从流中取一字符串用法:char*gets(char*string);函数名:gettext功能:将文本方式屏幕上的文本拷贝到存储区用法:intgettext(intleft,inttop,intright,intbottom,void*destin);函数名:gettextinfo功能:取得文本模式的显示信息用法:voidgettextinfo(structtext_info*inforec);函数名:gettextsettings功能:返回有关当前图形文本字体的信息用法:voidfargettextsettings(structtextsettingstypefar*textinfo);函数名:gettime功能:取得系统时间用法:voidgettime(structtime*timep);函数名:getvect功能:取得中断向量入口用法:voidinterrupt(*getvect(intintr_num));函数名:getverify功能:返回DOS校验标志状态用法:intgetverify(void);函数名:getviewsetting功能:返回有关当前视区的信息用法:voidfargetviewsettings(structviewporttypefar*viewport);函数名:getw功能:从流中取一整数用法:intgetw(FILE*strem);函数名:getx功能:返回当前图形位置的x坐标用法:intfargetx(void);函数名:gety功能:返回当前图形位置的y坐标用法:intfargety(void);函数名:gmtime功能:把日期与时间转换为格林尼治标准时间(GMT)用法:structtm*gmtime(long*clock);函数名:gotoxy功能:在文本窗口中设置光标用法:voidgotoxy(intx,inty);函数名:gotoxy功能:在文本窗口中设置光标用法:voidgotoxy(intx,inty);函数名:graphdefaults功能:将所有图形设置复位为它们的缺省值用法:voidfargraphdefaults(void);函数名:grapherrormsg功能:返回一个错误信息串的指针用法:char*fargrapherrormsg(interrorcode);函数名:graphresult功能:返回最后一次不成功的图形操作的错误代码用法:intfargraphresult(void);函数名:_graphfreemem功能:用户可修改的图形存储区释放函数用法:voidfar_graphfreemem(voidfar*ptr,unsignedsize);函数名:_graphgetmem功能:用户可修改的图形存储区分配函数用法:voidfar*far_graphgetmem(unsignedsize);函数名:harderr功能:建立一个硬件错误处理程序用法:voidharderr(int(*fptr)());函数名:hardresume功能:硬件错误处理函数用法:voidhardresume(intrescode);函数名:highvideo功能:选择高亮度文本字符用法:voidhighvideo(void);函数名:hypot功能:计算直角三角形的斜边长用法:doublehypot(doublex,doubley);函数名:imagesize功能:返回保存位图像所需的字节数用法:unsignedfarimagesize(intleft,inttop,intright,intbottom);函数名:initgraph功能:初始化图形系统用法:voidfarinitgraph(intfar*graphdriver,intfar*graphmode函数名:inport功能:从硬件端口中输入用法:intinp(intprotid);函数名:insline功能:在文本窗口中插入一个空行用法:voidinsline(void);函数名:installuserdriver功能:安装设备驱动程序到BGI设备驱动程序表中用法:intfarinstalluserdriver(charfar*name,int(*detect)(void));函数名:installuserfont功能:安装未嵌入BGI系统的字体文件(CHR)用法:intfarinstalluserfont(charfar*name);函数名:int86功能:通用8086软中断接口用法:intint86(intintr_num,unionREGS*inregs,unionREGS*outregs)函数名:int86x功能:通用8086软中断接口用法:intint86x(intintr_num,unionREGS*insegs,unionREGS*outregs,函数名:intdos功能:通用DOS接口用法:intintdos(unionREGS*inregs,unionREGS*outregs);函数名:intdosx功能:通用DOS中断接口用法:intintdosx(unionREGS*inregs,unionREGS*outregs,structSREGS*segregs);函数名:intr功能:改变软中断接口用法:voidintr(intintr_num,structREGPACK*preg);函数名:ioctl功能:控制I/O设备用法:intioctl(inthandle,intcmd[,int*argdx,intargcx]);函数名:isatty功能:检查设备类型用法:intisatty(inthandle);函数名:itoa功能:把一整数转换为字符串用法:char*itoa(intvalue,char*string,intradix);函数名:kbhit功能:检查当前按下的键用法:intkbhit(void);函数名:keep功能:退出并继续驻留用法:voidkeep(intstatus,intsize);函数名:kbhit功能:检查当前按下的键用法:intkbhit(void);函数名:keep功能:退出并继续驻留用法:voidkeep(intstatus,intsize);函数名:labs用法:longlabs(longn);函数名:ldexp功能:计算value*2的幂用法:doubleldexp(doublevalue,intexp);函数名:ldiv功能:两个长整型数相除,返回商与余数用法:ldiv_tldiv(longlnumer,longldenom);函数名:lfind功能:执行线性搜索用法:void*lfind(void*key,void*base,int*nelem,intwidth,int(*fcmp)());函数名:line功能:在指定两点间画一直线用法:voidfarline(intx0,inty0,intx1,inty1);函数名:linerel功能:从当前位置点(CP)到与CP有一给定相对距离的点画一直线用法:voidfarlinerel(intdx,intdy);函数名:localtime功能:把日期与时间转变为结构用法:structtm*localtime(long*clock);函数名:lock功能:设置文件共享锁用法:intlock(inthandle,longoffset,longlength);函数名:log功能:对数函数ln(x)用法:doublelog(doublex);函数名:log10功能:对数函数10g用法:doublelog10(doublex);函数名:longjump功能:执行非局部转移用法:v0id10ngjump(jmp_bufenv,intva1);函数名:lowvideo功能:选择低亮度字符用法:v0id10wvide0(v0id);函数名:lrotl,_lrotl功能:将无符号长整型数向左循环移位用法:unsigned10ng1r0t1(unsigned10ng1va1ue,intc0unt);unsigned10ng_1r0t1(unsigned10ng1va1ue,intc0unt);函数名:lsearch功能:线性搜索用法:v0id*1search(c0nstv0id*key,v0id*base,size_t*ne1em,size_twidth,int(*fcmp)(c0nstv0id*,c0nstv0id*));函数名:lseek功能:移动文件读/写指针用法:10ng1seek(inthand1e,10ng0ffset,intfr0mwhere);main()主函数每一C程序都必须有一main()函数,可以根据自己的爱好把它放在程序的某个地方。有些程序员把它放在最前面,而另一些程序员把它放在最后面,无论放在哪个地方,以下几点说明都就是适合的。main()参数在TurboC2、0启动过程中,传递main()函数三个参数:argc,argv与env。argc:整数,为传给main()的命令行参数个数。argv:字符串数组。在DOS3、X版本中,argv[0]为程序运行的全路径名;对DOS3、0以下的版本,argv[0]为空串("”)。argv[1]为在DOS命令行中执行程序名后的第一个字符串;argv[2]为执行程序名后的第二个字符串;、、、argv[argc]为NULL。*env:安符串数组。env口的每一个元素都包含ENVVAR=value形式的字符串。其中ENVVAR为环境变量如PATH或87。value为ENVVAR的对应值如C:\DOS,C:\TURBOC(对于PATH)或YES(对于87)。TurboC2、0启动时总就是把这三个参数传递给main()函数,可以在用户程序中说明(或不说明)它们,如果说明了部分(或全部)参数,它们就成为main()子程序的局部变量。请注意:一旦想说明这些参数,则必须按argc,argv,env的顺序,如以下的例子:main()main(intargc)main(intargc,char*argv[])main(intargc,char*argv[],char*env[])其中第二种情况就是合法的,但不常见,因为在程序中很少有只用argc,而不用argv□的情况。函数名:matherr功能:用户可修改的数学错误处理程序用法:intmatherr(structexception*e);函数名:memccpy功能:从源source中拷贝n个字节到目标destin中用法:void*memccpy(void*destin,void*source,unsignedcharch,unsignedn);函数名:malloc功能:内存分配函数用法:void*malloc(unsignedsize);函数名:memchr功能:在数组的前n个字节中搜索字符用法:void*memchr(void*s,charch,unsignedn);函数名:memcpy功能:从源source中拷贝n个字节到目标destin中用法:void*memcpy(void*destin,void*source,unsignedn);函数名:memicmp功能:比较两个串si与s2的前n个字节,忽略大小写用法:intmemicmp(void*s1,void*s2,unsignedn);函数名:memmove功能:移动一块字节用法:void*memmove(void*destin,void*source,unsignedn);函数名:memset功能:设置s中的所有字节为ch,s数组的大小由n给定用法:void*memset(void*s,charch,unsignedn);函数名:mkdir功能:建立一个目录用法:intmkdir(char*pathname);函数名:mktemp功能:建立唯一的文件名用法:char*mktemp(char*template);函数名:MK_FP功能:设置一个远指针用法:voidfar*MK_FP(unsignedseg,unsignedoff);函数名:modf功能:把数分为指数与尾数用法:doublemodf(doublevalue,double*iptr);函数名:movedata功能:拷贝字节用法:voidmovedata(intsegsrc,intoffsrc,intsegdest,intoffdest,unsignednumbytes);函数名:moverel功能:将当前位置(CP)移动一相对距离用法:voidfarmoverel(intdx,intdy);函数名:movetext功能:将屏幕文本从一个矩形区域拷贝到另一个矩形区域用法:intmovetext(intleft,inttop,intright,intbottom,intnewleft,intnewtop);函数名:moveto功能:将CP移到(x,y)用法:voidfarmoveto(intx,inty);函数名:movemem功能:移动一块字节用法:voidmovemem(void*source,void*destin,unsignedlen);函数名:normvideo功能:选择正常亮度字符用法:voidnormvideo(void);函数名:nosound功能:关闭PC扬声器用法:voidnosound(void);函数名:open功能:打开一个文件用于读或写函数名:outport功能:输出整数到硬件端口中用法:voidoutport(intport,intvalue);函数名:outportb功能:输出字节到硬件端口中用法:voidoutportb(intport,charbyte);函数名:outtext功能:在视区显示一个字符串用法:voidfarouttext(charfar*textstring);函数名:outtextxy功能:在指定位置显示一字符串用法:voidfarouttextxy(intx,inty,char*textstring);函数名:parsfnm功能:分析文件名用法:char*parsfnm(char*cmdline,structfcb*fcbptr,intoption);函数名:peek功能:检查存储单元用法:intpeek(intsegment,unsignedoffset);函数名:peekb功能:检查存储单元用法:charpeekb(intsegment,unsignedoffset);函数名:perror功能:系统错误信息用法:voidperror(char*string);函数名:pieslice功能:绘制并填充一个扇形用法:voidfarpieslice(intx,intstanle,intendangle,intradius);函数名:poke功能:存值到一个给定存储单元用法:voidpoke(intsegment,intoffset,intvalue);函数名:pokeb功能:存值到一个给定存储单元用法:voidpokeb(intsegment,intoffset,charvalue);函数名:poly功能:根据参数产生一个多项式用法:doublepoly(doublex,intn,doublec[]);函数名:pow功能:指数函数(x的y次方)用法:doublepow(doublex,doubley);函数名:pow10功能:指数函数(10的p次方)用法:doublepow10(intp);函数名:printf功能:产生格式化输出的函数用法:intprintf(char*format、、、);函数名:putc功能:输出一字符到指定流中用法:intputc(intch,FILE*stream);函数名:putch功能:输出字符到控制台用法:intputch(intch);函数名:putchar功能:在stdout上输出字符用法:intputchar(intch);函数名:putenv功能:把字符串加到当前环境中用法:intputenv(char*envvar);函数名:putimage功能:在屏幕上输出一个位图用法:voidfarputimage(intx,inty,voidfar*bitmap,intop);函数名:putpixel功能:在指定位置画一像素用法:voidfarputpixel(intx,inty,intpixelcolor);函数名:puts功能:送一字符串到流中用法:intputs(char*string);函数名:puttext功能:将文本从存储区拷贝到屏幕用法:intputtext(intleft,inttop,intright,intbottom,void*source);函数名:putw功能:把一字符或字送到流中用法:intputw(intw,FILE*stream)函数名:qsort功能:使用快速排序例程进行排序用法:voidqsort(void*base,intnelem,intwidth,int(*fcmp)());函数名:qsort功能:使用快速排序例程进行排序用法:voidqsort(void*base,intnelem,intwidth,int(*fcmp)());函数名:raise功能:向正在执行的程序发送一个信号用法:intraise(intsig);函数名:rand功能:随机数发生器用法:voidrand(void);函数名:randbrd功能:随机块读用法:intrandbrd(structfcb*fcbptr,intreccnt);函数名:randbwr功能:随机块写用法:intrandbwr(structfcp*fcbptr,intreccnt);函数名:random功能:随机数发生器用法:intrandom(intnum);函数名:randomize功能:初始化随机数发生器用法:voidrandomize(void)函数名:read功能:从文件中读用法:intread(inthandle,void*buf,intnbyte);函数名:read功能:从文件中读用法:intread(inthandle,void*buf,intnbyte);函数名:rectangle功能:画一个矩形用法:voidfarrectangle(intleft,inttop,intright,intbottom);函数名:registerbgidriver功能:登录已连接进来的图形驱动程序代码用法:intregisterbgidriver(void(*driver)(void));函数名:remove功能:删除一个文件用法:intremove(char*);函数名:rename功能:重命名文件用法:intrename(char*oldname,char*newname);函数名:restorecrtmode功能:将屏幕模式恢复为先前的imitgraph设置用法:voidfarrestorecrtmode(void);函数名:rewind功能:将文件指针重新指向一个流的开头用法:intrewind(FILE*stream);函数名:rmdir功能:删除DOS文件目录用法:intrmdir(char*stream);函数名:sbrk功能:改变数据段空间位置用法:char*sbrk(intincr);函数名:scanf功能:执行格式化输入用法:intscanf(char*format[,argument,、、、]);函数名:searchpath功能:搜索DOS路径用法:char*searchpath(char*);函数名:sector功能:画并填充椭圆扇区用法:voidfarsector(intx,inty,intstangle,intendangle);函数名:segread功能:读段寄存器值用法:voidsegread(structSREGS*segtbl);函数名:setactivepage功能:设置图形输出活动页用法:voidfarsetactivepage(intpagenum);函数名:setallpallette功能:按指定方式改变所有的调色板颜色用法:voidfarsetallpallette(structpalette,far*pallette);函数名:setaspectratio功能:设置图形纵横比用法:voidfarsetaspectratio(intxasp,intyasp);函数名:setbkcolor功能:用调色板设置当前背景颜色用法:voidfarsetbkcolor(intcolor);函数名:setblock功能:修改先前已分配的DOS存储段大小用法:intsetblock(intseg,intnewsize);函数名:setbuf功能:把缓冲区与流相联用法:voidsetbuf(FILE*steam,char*buf);函数名:setcbrk功能:设置Control-break用法:intsetcbrk(intvalue);函数名:setcolor功能:设置当前画线颜色用法:voidfarsetcolor(intcolor);函数名:setdate功能:设置DOS日期用法:voidsetdate(structdate*dateblk);函数名:setdisk功能:设置当前磁盘驱动器用法:intsetdisk(intdrive);函数名:setdta功能:设置磁盘传输区地址用法:voidsetdta(charfar*dta);函数名:setfillpattern功能:选择用户定义的填充模式用法:voidfarsetfillpattern(charfar*upattern,intcolor);函数名:setfillstyle功能:设置填充模式与颜色用法:voidfarsetfillstyle(intpattern,intcolor);函数名:setftime功能:设置文件日期与时间用法:intsetftime(inthandle,structftime*ftimep);函数名:setgraphbufsize功能:改变内部图形缓冲区的大小用法:unsignedfarsetgraphbufsize(unsignedbufsize);函数名:setgraphmode功能:将系统设置成图形模式且清屏用法:voidfarsetgraphmode(intmode);函数名:setjmp功能:非局部转移用法:intsetjmp(jmp_bufenv);函数名:setlinestyle功能:设置当前画线宽度与类型用法:voidfarsetlinestyle(intlinestype,unsignedupattern);函数名:setmem功能:存值到存储区用法:voidsetmem(void*addr,intlen,charvalue);函数名:setmode功能:设置打开文件方式用法:intsetmode(inthandle,unsignedmode);函数名:setpalette功能:改变调色板的颜色用法:voidfarsetpalette(intindex,intactural_color);函数名:setrgbpalette功能:定义旧M8514图形卡的颜色用法:voidfarsetrgbpalette(intcolornum,intred,intgreen,intblue);函数名:settextjustify功能:为图形函数设置文本的对齐方式用法:voidfarsettextjustify(inthoriz,intvert);函数名:settextstyle功能:为图形输出设置当前的文本属性用法:voidfarsettextstyle(intfont,intdirection,charsize);函数名:settextstyle功能:为图形输出设置当前的文本属性用法:voidfarsettextstyle(intfont,intdirection,charsize);函数名:settime功能:设置系统时间用法:voidsettime(structtime*timep);函数名:setusercharsize功能:为矢量字体改变字符宽度与高度用法:voidfarsetusercharsize(intmultx,intdirx,intmulty,intdiry);函数名:setvbuf功能:把缓冲区与流相关用法:intsetvbuf(FILE*stream,char*buf,inttype,unsignedsize);函数名:setvect功能:设置中断矢量入口用法:voidsetvect(intintr_num,voidinterrupt(*isr)());函数名:setverify功能:设置验证状态用法:voidsetverify(intvalue);函数名:setviewport功能:为图形输出设置当前视口用法:voidfarsetviewport(intleft,inttop,intright,intbottom,intclipflag);函数名:setvisualpage功能:设置可见图形页号用法:voidfarsetvisualpage(intpagenum);函数名:setwritemode功能:设置图形方式下画线的输出模式用法:voidfarsetwritemode(intmode);函数名:signal功能:设置某一信号的对应动作用法:intsignal(intsig,sigfunfname)函数名:sin功能:正弦函数用法:doublesin(doublex);函数名:sinh功能:双曲正弦函数用法:doublesinh(doublex);函数名:sleep功能:执行挂起一段时间用法:unsignedsleep(unsignedseconds);函数名:sopen功能:打开一共享文件用法:intsopen(char*pathname,intaccess,intshflag,intpermiss);函数名:sound功能:以指定频率打开PC扬声器用法:voidsound(unsignedfrequency);函数名:spawnl功能:创建并运行子程序用法:intspawnl(intmode,char*pathname,char*arg0,函数名:spawnle功能:创建并运行子程序用法:intspawnle(intmode,char*pathname,char*arg0,arg1,、、、,argn,NULL);函数名:sprintf功能:送格式化输出到字符串中用法:intsprintf(char*string,char*farmat[,argument,、、、]);函数名:sqrt功能:计算平方根用法:doublesqrt(doublex)函数名:srand功能:初始化随机数发生器用法:voidsrand(unsignedseed);函数名:sscanf功能:执行从字符串中的格式化输入用法:intsscanf(char*string,char*format[,argument,、、、]);函数名:stat功能:读取打开文件信息用法:intstat(char*pathname,structstat*buff);函数名:_status87功能:取浮点状态用法:unsignedint_status87(void);函数名:stime功能:设置时间用法:intstime(long*tp);函数名:stpcpy功能:拷贝一个字符串到另一个用法:char*stpcpy(char*destin,char*source);函数名:strcat功能:字符串拼接函数用法:char*strcat(char*destin,char*source);函数名:strchr功能:在一个串中查找给定字符的第一个匹配之处\用法:char*strchr(char*str,charc);函数名:strcmp功能:串比较用法:intstrcmp(char*str1,char*str2);函数名:strncmpi功能:将一个串中的一部分与另一个串比较,不管大小写用法:intstrncmpi(char*str1,char*str2,unsignedmaxlen);函数名:strcpy功能:串拷贝用法:char*strcpy(char*str1,char*str2);函数名:strcspn功能:在串中查找第一个给定字符集内容的段用法:intstrcspn(char*str1,char*str2);函数名:strdup功能:将串拷贝到新建的位置处用法:char*strdup(char*str);函数名:stricmp功能:以大小写不敏感方式比较两个串用法:intstricmp(char*str1,char*str2);函数名:strerror功能:返回指向错误信息字符串的指针用法:char*strerror(interrnum);函数名:strcmpi功能:将一个串与另一个比较,不管大小写用法:intstrcmpi(char*str1,char*str2);函数名:strncmp功能:串比较用法:intstrncmp(char*str1,char*str2,intmaxlen);函数名:strncmpi功能:把串中的一部分与另一串中的一部分比较,不管大小写用法

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论