✅ 操作成功!

C语言库函数

发布时间:2023-06-08 作者:admin 来源:文学

C语言库函数

C语言库函数

鲁西物流-磷酸缓冲液的配制

2023年2月23日发(作者:团队协作的五大障碍)

-

.z.

函数名:abort

功能:异常终止一个进程

用法:voidabort(void)

函数名:abs

功能:求整数的绝对值

用法:intabs(inti)

函数名:absread,abswirte

功能:绝对磁盘扇区读、写数据

用法:intabsread(intdrive,intnsects,intsectno,void*buffer)

intabswrite(intdrive,intnsects,intsectno,void*buffer

函数名:access

功能:确定文件的访问权限

用法:intaccess(constchar*filename,intamode)

函数名:acos

功能:反余弦函数

用法:doubleacos(double*)

函数名:allocmem

功能:分配DOS存储段

用法:intallocmem(unsignedsize,unsigned*seg)

函数名:arc

功能:画一弧线

用法:voidfararc(int*,inty,intstangle,intendangle,intradius)

函数名:asctime

功能:转换日期和时间为ASCII码

用法:char*asctime(conststructtm*tblock)

函数名:asin

功能:反正弦函数

用法:doubleasin(double*)

函数名:assert

功能:测试一个条件并可能使程序终止

用法:voidassert(inttest)

函数名:atan

功能:反正切函数

用法:doubleatan(double*)

-

.z.

函数名:atan2

功能:计算Y/*的反正切值

用法:doubleatan2(doubley,double*)

函数名:ate*it

功能:注册终止函数

用法:intate*it(ate*it_tfunc)

函数名:atof

功能:把字符串转换成浮点数

用法:doubleatof(constchar*nptr)

函数名:atoi

功能:把字符串转换成长整型数

用法:intatoi(constchar*nptr)

函数名:atol

功能:把字符串转换成长整型数

用法:longatol(constchar*nptr)

函数名:bar

功能:画一个二维条形图

用法:voidfarbar(intleft,inttop,intright,intbottom)

函数名:bar3d

功能:画一个三维条形图

用法:voidfarbar3d(intleft,inttop,intright,intbottom,

intdepth,inttopflag)

函数名:bdos

功能:DOS系统调用

用法:intbdos(intdosfun,unsigneddosd*,unsigneddosal)

函数名:bdosptr

功能:

DOS系统调用

用法:intbdosptr(intdosfun,void*argument,unsigneddosal)

函数名:bioscom

功能:串行I/O通信

用法:intbioscom(intcmd,charabyte,intport)

函数名:biosdisk

功能:软硬盘I/O

-

.z.

用法:intbiosdisk(intcmd,intdrive,inthead,inttrack,intsector

intnsects,void*buffer)

函数名:biosequip

功能:检查设备

用法:intbiosequip(void)

函数名:bioskey

功能:直接使用BIOS效劳的键盘接口

用法:intbioskey(intcmd)

函数名:biosmemory

功能:返回存储块大小

用法:intbiosmemory(void)

函数名:biosprint

功能:直接使用BIOS效劳的打印机I/O

用法:intbiosprint(intcmd,intbyte,intport)

函数名:biostime

功能:读取或设置BIOS时间

用法:longbiostime(intcmd,longnewtime)

函数名:brk

功能:改变数据段空间分配

用法:intbrk(void*endds)

函数名:bsearch

功能:二分法搜索

用法:void*bsearch(constvoid*key,constvoid*base,size_t*nelem,

size_twidth,int(*fcmp)(constvoid*,const*))

函数名:cabs

功能:计算复数的绝对值

用法:doublecabs(structcomple*z);

函数名:calloc

功能:分配主存储器

用法:void*calloc(size_tnelem,size_telsize);

函数名:ceil

功能:向上舍入

用法:doubleceil(double*);

函数名:cgets

-

.z.

功能:从控制台读字符串

用法:char*cgets(char*str)

函数名:chdir

功能:改变工作目录

用法:intchdir(constchar*path);

函数名:_chmod,chmod

功能:改变文件的访问方式

用法:intchmod(constchar*filename,intpermiss);

函数名:chsize

功能:改变文件大小

用法:intchsize(inthandle,longsize);

函数名:circle

功能:在给定半径以(*,y)为圆心画圆

用法:voidfarcircle(int*,inty,intradius);

函数名:cleardevice

功能:去除图形屏幕

用法:voidfarcleardevice(void);

函数名:clearerr

功能:复位错误标志

用法:voidclearerr(FILE*stream);

函数名:clearviewport

功能:去除图形视区

用法:voidfarclearviewport(void);

函数名:_close,close

功能:关闭文件句柄

用法:intclose(inthandle);

函数名:clock

功能:确定处理器时间

用法:clock_tclock(void);

函数名:closegraph

功能:关闭图形系统

用法:voidfarclosegraph(void);

函数名:clreol

功能:在文本窗口中去除字符到行末

-

.z.

用法:voidclreol(void)

函数名:clrscr

功能:去除文本模式窗口

用法:voidclrscr(void);

函数名:coreleft

功能:返回未使用内存的大小

用法:unsignedcoreleft(void);

函数名:cos

功能:余弦函数

用法:doublecos(double*);

函数名:cosh

功能:双曲余弦函数

用法:dlublecosh(double*);

函数名:country

功能:返回与国家有关的信息

用法:structCOUNTRY*country(intcountrycode,structcountry*country);

函数名:cprintf

功能:送格式化输出至屏幕

用法:intcprintf(constchar*format[,argument,...]);

函数名:cputs

功能:写字符到屏幕

用法:voidcputs(constchar*string);

函数名:_creatcreat

功能:创立一个新文件或重写一个已存在的文件

用法:intcreat(constchar*filename,intpermiss)

函数名:creatnew

功能:创立一个新文件

用法:intcreatnew(constchar*filename,intattrib);

函数名:cscanf

功能:从控制台执行格式化输入

用法:intcscanf(char*format[,argument,...]);

函数名:ctime

功能:把日期和时间转换为字符串

用法:char*ctime(consttime_t*time);

-

.z.

函数名: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

功能:屏蔽中断

用法:voiddisable(void);

函数名:div

功能:将两个整数相除,返回商和余数

用法:div_t(intnumber,intdenom);

函数名:dose*terr

功能:获取扩展DOS错误信息

用法:intdose*terr(structDOSERR*dblkp);

函数名:dostouni*

功能:转换日期和时间为UNI*时间格式

用法:longdostouni*(structdate*dateptr,structtime*timeptr);

函数名:drawpoly

功能:画多边形

用法:voidfardrawpoly(intnumpoints,intfar*polypoints);

函数名:dup

功能:复制一个文件句柄

用法:intdup(inthandle);

函数名:dup2

功能:复制文件句柄

用法:intdup2(intoldhandle,intnewhandle);

-

.z.

函数名:ecvt

功能:把一个浮点数转换为字符串

用法:charecvt(doublevalue,intndigit,int*decpt,int*sign);

函数名:ellipse

功能:画一椭圆

用法:voidfarellipse(int*,inty,intstangle,intendangle,

int*radius,intyradius);

函数名:enable

功能:开放硬件中断

用法:voidenable(void);

函数名:eof

功能:检测文件完毕

用法:inteof(int*handle);

函数名:e*ec...

功能:装入并运行其它程序的函数

用法:inte*ecl(char*pathname,char*arg0,arg1,...,argn,NULL);

inte*ecle(char*pathname,char*arg0,arg1,...,argn,NULL,

char*envp[]);

inte*eclp(char*pathname,char*arg0,arg1,..,NULL);

inte*ecple(char*pathname,char*arg0,arg1,...,NULL,

char*envp[]);

inte*ecv(char*pathname,char*argv[]);

inte*ecve(char*pathname,char*argv[],char*envp[]);

inte*ecvp(char*pathname,char*argv[]);

inte*ecvpe(char*pathname,char*argv[],char*envp[]);

函数名:e*it

功能:终止程序

用法:voide*it(intstatus);

函数名:e*p

功能:指数函数

用法:doublee*p(double*);

函数名:gcvt

功能:把浮点数转换成字符串

用法:char*gcvt(doublevalue,intndigit,char*buf);

函数名:geninterrupt

功能:产生一个软中断

-

.z.

用法:voidgeninterrupt(intintr_num);

函数名:getarccoords

功能:取得最后一次调用arc的坐标

用法:voidfargetarccoords(structarccoordstypefar*arccoords);

函数名:getaspectratio

功能:返回当前图形模式的纵横比

用法:voidfargetaspectratio(intfar**asp,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日期

-

.z.

用法: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

功能:返回当前图形模式

-

.z.

用法:intfargetgraphmode(void);

函数名:getimage

功能:将指定区域的一个位图存到主存中

用法:voidfargetimage(intleft,inttop,intright,intbottom,

voidfar*bitmap);

函数名:getlinesettings

功能:取当前线型、模式和宽度

用法:voidfargetlinesettings(structlinesettingstypefar*lininfo):

函数名:getma**

功能:返回屏幕的最大*坐标

用法:intfargetma**(void);

函数名:getma*y

功能:返回屏幕的最大y坐标

用法:intfargetma*y(void);

函数名:getmodename

功能:返回含有指定图形模式名的字符串指针

用法:char*fargetmodename(intmode_name);

函数名:getmoderange

功能:取给定图形驱动程序的模式范围

用法:voidfargetmoderange(intgraphdriver,intfar*lomode,

intfar*himode);

函数名:getpalette

功能:返回有关当前调色板的信息

用法:voidfargetpalette(structpalettetypefar*palette);

函数名:getpass

功能:读一个口令

用法:char*getpass(char*prompt);

函数名:getpi*el

功能:取得指定像素的颜色

用法:intfargetpi*el(int*,inty);

函数名:gets

功能:从流中取一字符串

用法:char*gets(char*string);

函数名:gette*t

功能:将文本方式屏幕上的文本拷贝到存储区

用法:intgette*t(intleft,inttop,intright,intbottom,void*destin);

-

.z.

函数名:gette*tinfo

功能:取得文本模式的显示信息

用法:voidgette*tinfo(structte*t_info*inforec);

函数名:gette*tsettings

功能:返回有关当前图形文本字体的信息

用法:voidfargette*tsettings(structte*tsettingstypefar*te*tinfo);

函数名:gettime

功能:取得系统时间

用法:voidgettime(structtime*timep);

函数名:getvect

功能:取得中断向量入口

用法:voidinterrupt(*getvect(intintr_num));

函数名:getverify

功能:返回DOS校验标志状态

用法:intgetverify(void);

函数名:getviewsetting

功能:返回有关当前视区的信息

用法:voidfargetviewsettings(structviewporttypefar*viewport);

函数名:getw

功能:从流中取一整数

用法:intgetw(FILE*strem);

函数名:get*

功能:返回当前图形位置的*坐标

用法:intfarget*(void);

函数名:gety

功能:返回当前图形位置的y坐标

用法:intfargety(void);

函数名:gmtime

功能:把日期和时间转换为格林尼治标准时间(GMT)

用法:structtm*gmtime(long*clock);

函数名:goto*y

功能:在文本窗口中设置光标

用法:voidgoto*y(int*,inty);

函数名:goto*y

功能:在文本窗口中设置光标

用法:voidgoto*y(int*,inty);

-

.z.

函数名: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(double*,doubley);

函数名:imagesize

功能:返回保存位图像所需的字节数

用法:unsignedfarimagesize(intleft,inttop,intright,intbottom);

函数名:initgraph

功能:初始化图形系统

用法:voidfarinitgraph(intfar*graphdriver,intfar*graphmode

函数名:inport

功能:从硬件端口中输入

用法:intinp(intprotid);

-

.z.

函数名: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)

函数名:int86*

功能:通用8086软中断接口

用法:intint86*(intintr_num,unionREGS*insegs,unionREGS*outregs,

函数名:intdos

功能:通用DOS接口

用法:intintdos(unionREGS*inregs,unionREGS*outregs);

函数名:intdos*

功能:通用DOS中断接口

用法:intintdos*(unionREGS*inregs,unionREGS*outregs,

structSREGS*segregs);

函数名:intr

功能:改变软中断接口

用法:voidintr(intintr_num,structREGPACK*preg);

函数名:ioctl

功能:控制I/O设备

用法:intioctl(inthandle,intcmd[,int*argd*,intargc*]);

函数名:isatty

功能:检查设备类型

用法:intisatty(inthandle);

函数名:itoa

功能:把一整数转换为字符串

用法:char*itoa(intvalue,char*string,intradi*);

函数名:kbhit

功能:检查当前按下的键

-

.z.

用法:intkbhit(void);

函数名:keep

功能:退出并继续驻留

用法:voidkeep(intstatus,intsize);

函数名:kbhit

功能:检查当前按下的键

用法:intkbhit(void);

函数名:keep

功能:退出并继续驻留

用法:voidkeep(intstatus,intsize);

函数名:labs

用法:longlabs(longn);

函数名:lde*p

功能:计算value*2的幂

用法:doublelde*p(doublevalue,inte*p);

函数名:ldiv

功能:两个长整型数相除,返回商和余数

用法:ldiv_tldiv(longlnumer,longldenom);

函数名:lfind

功能:执行线性搜索

用法:void*lfind(void*key,void*base,int*nelem,intwidth,

int(*fcmp)());

函数名:line

功能:在指定两点间画一直线

用法:voidfarline(int*0,inty0,int*1,inty1);

函数名:linerel

功能:从当前位置点(CP)到与CP有一给定相对距离的点画一直线

用法:voidfarlinerel(intd*,intdy);

函数名:localtime

功能:把日期和时间转变为构造

用法:structtm*localtime(long*clock);

函数名:lock

功能:设置文件共享锁

用法:intlock(inthandle,longoffset,longlength);

函数名:log

功能:对数函数ln(*)

-

.z.

用法:doublelog(double*);

函数名:log10

功能:对数函数log

用法:doublelog10(double*);

函数名:longjump

功能:执行非局部转移

用法:voidlongjump(jmp_bufenv,intval);

函数名:lowvideo

功能:选择低亮度字符

用法:voidlowvideo(void);

函数名:lrotl,_lrotl

功能:将无符号长整型数向左循环移位

用法:unsignedlonglrotl(unsignedlonglvalue,intcount);

unsignedlong_lrotl(unsignedlonglvalue,intcount);

函数名:lsearch

功能:线性搜索

用法:void*lsearch(constvoid*key,void*base,size_t*nelem,

size_twidth,int(*fcmp)(constvoid*,constvoid*));

函数名:lseek

功能:移动文件读/写指针

用法:longlseek(inthandle,longoffset,intfromwhere);

main()主函数

每一C程序都必须有一main()函数,可以根据自己的爱好把它放在程序的*

个地方。有些程序员把它放在最前面,而另一些程序员把它放在最后面,无论放

在哪个地方,以下几点说明都是适合的。

()参数

在TurboC2.0启动过程中,传递main()函数三个参数:argc,argv和env。

*argc:整数,为传给main()的命令行参数个数。

*argv:字符串数组。

在DOS3.*版本中,argv[0]为程序运行的全路径名;对DOS3.0

以下的版本,argv[0]为空串("")。

argv[1]为在DOS命令行中执行程序名后的第一个字符串;

argv[2]为执行程序名后的第二个字符串;

...

argv[argc]为NULL。

*env:安符串数组。env[]的每一个元素都包含ENVVAR=value形式的字符

-

.z.

串。其中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(structe*ception*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

功能:比拟两个串s1和s2的前n个字节,忽略大小写

用法:intmemicmp(void*s1,void*s2,unsignedn);

函数名:memmove

功能:移动一块字节

用法:void*memmove(void*destin,void*source,unsignedn);

函数名:memset

-

.z.

功能:设置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(intd*,intdy);

函数名:movete*t

功能:将屏幕文本从一个矩形区域拷贝到另一个矩形区域

用法:intmovete*t(intleft,inttop,intright,intbottom,

intnewleft,intnewtop);

函数名:moveto

功能:将CP移到(*,y)

用法:voidfarmoveto(int*,inty);

函数名:movemem

功能:移动一块字节

用法:voidmovemem(void*source,void*destin,unsignedlen);

函数名:normvideo

功能:选择正常亮度字符

用法:voidnormvideo(void);

函数名:nosound

功能:关闭PC扬声器

-

.z.

用法:voidnosound(void);

函数名:open

功能:翻开一个文件用于读或写

函数名:outport

功能:输出整数到硬件端口中

用法:voidoutport(intport,intvalue);

函数名:outportb

功能:输出字节到硬件端口中

用法:voidoutportb(intport,charbyte);

函数名:outte*t

功能:在视区显示一个字符串

用法:voidfaroutte*t(charfar*te*tstring);

函数名:outte*t*y

功能:在指定位置显示一字符串

用法:voidfaroutte*t*y(int*,inty,char*te*tstring);

函数名:parsfnm

功能:分析文件名

用法:char*parsfnm(char*cmdline,structfcb*fcbptr,intoption);

函数名:peek

功能:检查存储单元

用法:intpeek(intsegment,unsignedoffset);

函数名:peekb

功能:检查存储单元

用法:charpeekb(intsegment,unsignedoffset);

函数名:perror

功能:系统错误信息

用法:voidperror(char*string);

函数名:pieslice

功能:绘制并填充一个扇形

用法:voidfarpieslice(int*,intstanle,intendangle,intradius);

函数名:poke

功能:存值到一个给定存储单元

用法:voidpoke(intsegment,intoffset,intvalue);

函数名:pokeb

功能:存值到一个给定存储单元

用法:voidpokeb(intsegment,intoffset,charvalue);

-

.z.

函数名:poly

功能:根据参数产生一个多项式

用法:doublepoly(double*,intn,doublec[]);

函数名:pow

功能:指数函数(*的y次方)

用法:doublepow(double*,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(int*,inty,voidfar*bitmap,intop);

函数名:putpi*el

功能:在指定位置画一像素

用法:voidfarputpi*el(int*,inty,intpi*elcolor);

函数名:puts

功能:送一字符串到流中

用法:intputs(char*string);

函数名:putte*t

功能:将文本从存储区拷贝到屏幕

用法:intputte*t(intleft,inttop,intright,intbottom,void*source);

-

.z.

函数名: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);

-

.z.

函数名:registerbgidriver

功能:登录已连接进来的图形驱动程序代码

用法:intregisterbgidriver(void(*driver)(void));

函数名:remove

功能:删除一个文件

用法:intremove(char*filename);

函数名: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*filename);

函数名:sector

功能:画并填充椭圆扇区

用法:voidfarsector(int*,inty,intstangle,intendangle);

函数名:segread

功能:读段存放器值

用法:voidsegread(structSREGS*segtbl);

函数名:setactivepage

功能:设置图形输出活动页

用法:voidfarsetactivepage(intpagenum);

-

.z.

函数名:setallpallette

功能:按指定方式改变所有的调色板颜色

用法:voidfarsetallpallette(structpalette,far*pallette);

函数名:setaspectratio

功能:设置图形纵横比

用法:voidfarsetaspectratio(int*asp,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);

-

.z.

函数名: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(intinde*,intactural_color);

函数名:setrgbpalette

功能:定义IBM8514图形卡的颜色

用法:voidfarsetrgbpalette(intcolornum,intred,intgreen,intblue);

函数名:sette*tjustify

功能:为图形函数设置文本的对齐方式

用法:voidfarsette*tjustify(inthoriz,intvert);

函数名:sette*tstyle

功能:为图形输出设置当前的文本属性

用法:voidfarsette*tstyle(intfont,intdirection,charsize);

函数名:sette*tstyle

功能:为图形输出设置当前的文本属性

用法:voidfarsette*tstyle(intfont,intdirection,charsize);

-

.z.

函数名:settime

功能:设置系统时间

用法:voidsettime(structtime*timep);

函数名:setusercharsize

功能:为矢量字体改变字符宽度和高度

用法:voidfarsetusercharsize(intmult*,intdir*,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(double*);

函数名:sinh

功能:双曲正弦函数

用法:doublesinh(double*);

函数名:sleep

功能:执行挂起一段时间

-

.z.

用法: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(double*)

函数名: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

-

.z.

功能:拷贝一个字符串到另一个

用法: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,unsignedma*len);

函数名: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,intma*len);

函数名:strncmpi

-

.z.

功能:把串中的一局部与另一串中的一局部比拟,不管大小写

用法:intstrncmpi(char*str1,char*str2);

函数名:strncpy

功能:串拷贝

用法:char*strncpy(char*destin,char*source,intma*len);

函数名:strnicmp

功能:不注重大小写地比拟两个串

用法:intstrnicmp(char*str1,char*str2,unsignedma*len);

函数名:strnset

功能:将一个串中的所有字符都设为指定字符

用法:char*strnset(char*str,charch,unsignedn);

函数名:strpbrk

功能:在串中查找给定字符集中的字符

用法:char*strpbrk(char*str1,char*str2);

函数名:strrchr

功能:在串中查找指定字符的最后一个出现

用法:char*strrchr(char*str,charc);

函数名:strrev

功能:串倒转

用法:char*strrev(char*str);

函数名:strset

功能:将一个串中的所有字符都设为指定字符

用法:char*strset(char*str,charc)

函数名:strspn

功能:在串中查找指定字符集的子集的第一次出现

用法:intstrspn(char*str1,char*str2);

函数名:strstr

功能:在串中查找指定字符串的第一次出现

用法:char*strstr(char*str1,char*str2);

函数名:strtod

功能:将字符串转换为double型值

用法:doublestrtod(char*str,char**endptr);

函数名:strtok

功能:查找由在第二个串中指定的分界符分隔开的单词

用法:char*strtok(char*str1,char*str2);

函数名:strtol

-

.z.

功能:将串转换为长整数

用法:longstrtol(char*str,char**endptr,intbase);

函数名:strupr

功能:将串中的小写字母转换为大写字母

用法:char*strupr(char*str);

函数名:swab

功能:交换字节

用法:voidswab(char*from,char*to,intnbytes);

函数名:system

功能:发出一个DOS命令

用法:intsystem(char*command);

函数名:tell

功能:取文件指针的当前位置

用法:longtell(inthandle);

函数名:te*tattr

功能:设置文本属性

用法:voidte*tattr(intattribute);

函数名:te*tbackground

功能:选择新的文本背景颜色

用法:voidte*tbackground(intcolor);

函数名:te*tcolor

功能:在文本模式中选择新的字符颜色

用法:voidte*tcolor(intcolor);

函数名:te*theight

功能:返回以像素为单位的字符串高度

用法:intfarte*theight(charfar*te*tstring);

函数名:te*tmode

功能:将屏幕设置成文本模式

用法:voidte*tmode(intmode);

函数名:te*twidth

功能:返回以像素为单位的字符串宽度

用法:intfarte*twidth(charfar*te*tstring);

函数名:time

功能:取一天的时间

用法:logntime(long*tloc);

函数名:tmpfile

-

.z.

功能:以二进制方式翻开暂存文件

用法:FILE*tmpfile(void);

函数名:tmpnam

功能:创立一个唯一的文件名

用法:char*tmpnam(char*sptr);

函数名:tolower

功能:把字符转换成小写字母

用法:inttolower(intc);

函数名:toupper

功能:把字符转换成大写字母

用法:inttoupper(intc);

函数名:tzset

功能:UNI*时间兼容函数

用法:voidtzset(void);

函数名:ultoa

功能:转换一个无符号长整型数为字符串

用法:char*ultoa(unsignedlongvalue,char*string,intradi*);

函数名:ungetc

功能:把一个字符退回到输入流中

用法:intungetc(charc,FILE*stream);

函数名:ungetch

功能:把一个字符退回到键盘缓冲区中

用法:intungetch(intc);

函数名:uni*todos

功能:把日期和时间转换成DOS格式

用法:voiduni*todos(longutime,structdate*dateptr,

structtime*timeptr);

函数名:unlink

功能:删掉一个文件

用法:intunlink(char*filename);

函数名:unlock

功能:解除文件共享锁

用法:intunlock(inthandle,longoffset,longlength);

函数名:vfprintf

功能:送格式化输出到一流中

用法:intvfprintf(FILE*stream,char*format,va_listparam);

👁️ 阅读量:0