C库函数手册.txt_第1页
C库函数手册.txt_第2页
C库函数手册.txt_第3页
C库函数手册.txt_第4页
C库函数手册.txt_第5页
已阅读5页,还剩15页未读 继续免费阅读

下载本文档

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

文档简介

c ,ctype.h int isalpha(int ch) ch(a-z,a-z)0,0 int isalnum(int ch) ch(a-z,a-z)(0-9) 0,0 int isascii(int ch) ch(ascii0-127)0,0 int iscntrl(int ch) ch(0x7f)(0x00-0x1f) 0,0 int isdigit(int ch) ch(0-9)0,0 int isgraph(int ch) ch()(0x21-0x7e)0,0 int islower(int ch) ch(a-z)0,0 int isprint(int ch) ch()(0x20-0x7e)0,0 int ispunct(int ch) ch(0x00-0x1f)0,0 int isspace(int ch) ch( ),(t),(r), (f),(v),(n) 0,0 int isupper(int ch) ch(a-z)0,0 int isxdigit(int ch) ch16(0-9,a-f,a-f)0, 0 int tolower(int ch) ch(a-z)(a-z) int toupper(int ch) ch(a-z)(a-z) ,math.hstdlib.hstring.hfloat.h int abs(int i) i double cabs(struct complex znum) znum double fabs(double x) x long labs(long n) n double exp(double x) ex double frexp(double value,int *eptr) value=x*2nx,neptr double ldexp(double value,int exp); value*2exp double log(double x) logex double log10(double x) log10x double pow(double x,double y) xy double pow10(int p) 10p double sqrt(double x) +x double acos(double x) xcos-1(x),x double asin(double x) xsin-1(x),x double atan(double x) xtan-1(x),x double atan2(double y,double x) y/xtan-1(x),yx double cos(double x) xcos(x),x double sin(double x) xsin(x),x double tan(double x) xtan(x),x double cosh(double x) double sinh(double x) xsinh(x),x double tanh(double x) xtanh(x),x double hypot(double x,double y) (z), xy,z2=x2+y2 double ceil(double x) x double floor(double x) x void srand(unsigned seed) int rand() 2005-9-12 21:46 61.55.212.* 2 double poly(double x,int n,double c) double modf(double value,double *iptr)value double fmod(double x,double y) x/y double frexp(double value,int *eptr) value double atof(char *nptr) nptr double atoi(char *nptr) nptr double atol(char *nptr) nptr char *ecvt(double value,int ndigit,int *decpt,int *sign) value char *fcvt(double value,int ndigit,int *decpt,int *sign) value char *gcvt(double value,int ndigit,char *buf) valuebuf,buf char *ultoa(unsigned long value,char *string,int radix) value,radix char *ltoa(long value,char *string,int radix) value,radix char *itoa(int value,char *string,int radix) valuestring,radix double atof(char *nptr) nptr,0 int atoi(char *nptr) nptr, ,0 long atol(char *nptr) nptr,0 double strtod(char *str,char *endptr)str, long strtol(char *str,char *endptr,int base)str, , int matherr(struct exception *e) () double _matherr(_mexcep why,char *fun,double *arg1p, double *arg2p,double retval) () unsigned int _clear87() void _fpreset() unsigned int _status87() ,dir.hdos.h int chdir(char *path) path:“c:wps“, 0 int findfirst(char *pathname,struct ffblk *ffblk,int attrib), 0 pathname,“c:wpstxt“ ffblk,: struct ffblk char ff_reserved21; /*dos*/ char ff_attrib; /*/ int ff_ftime; /*/ int ff_fdate; /*/ long ff_fsize; /*/ char ff_name13; /*/ attrib, fa_rdonly fa_label fa_hidden fa_direc 2005-9-12 21:46 61.55.212.* 3 fa_system fa_arch : struct ffblk ff; findfirst(“*.wps“, int findnext(struct ffblk *ffblk) finddirst,0 void fumerge(char *path,char *drive,char *dir,char *name,char *ext) drive(c:a:),dir(tcbclib), name(tcwps),ext(.exe.com) path. int fnsplit(char *path,char *drive,char *dir,char *name,char *ext) pathdrive(c:a:),dir(tcbclib), name(tcwps),ext(.exe.com),. int getcurdir(int drive,char *direc) drive (0=,1=a,2=b,3=c) direc 0 char *getcwd(char *buf,iint n) buf,n .null int getdisk() ,(0=a,1=b,2=c) int setdisk(int drive) drive(0=a,1=b,2=c), int mkdir(char *pathname) pathname,0 int rmdir(char *pathname) char *mktemp(char *template) template char *searchpath(char *pathname) msdosfilename, ,dospath,null ,stdlib.hprocess.h void abort() 3_exitstderr int exec int execl( char *pathname,char *arg0,char *arg1,char *argn,null) int execle( char *pathname,char *arg0,char *arg1, char *argn,null,char *envp) int execlp( char *pathname,char *arg0,char *arg1,null) int execlpe(char *pathname,char *arg0,char *arg1,null,char *envp) int execv( char *pathname,char *argv) int execve( char *pathname,char *argv,char *envp) int execvp( char *pathname,char *argv) int execvpe(char *pathname,char *argv,char *envp) execpathname arg0(arg1,arg2,argv,envp),-1 exec,lvpeexec pdospath l v eenvp e void _exit(int status), void exit(int status) ,(), “, int spawn int spawnl( int mode,char *pathname,char *arg0,char *arg1, char *argn,null) int spawnle( int mode,char *pathname,char *arg0,char *arg1, char *argn,null,char *envp) 2005-9-12 21:46 61.55.212.* 4 int spawnlp( int mode,char *pathname,char *arg0,char *arg1, char *argn,null) int spawnlpe(int mode,char *pathname,char *arg0,char *arg1, char *argn,null,char *envp) int spawnv( int mode,char *pathname,char *argv) int spawnve( int mode,char *pathname,char *argv,char *envp) int spawnvp( int mode,char *pathname,char *argv) int spawnvpe(int mode,char *pathname,char *argv,char *envp) spawnmodepathname, arg0(arg1,arg2,argv,envp).-1 mode mode p_wait p_nowait p_overlay spawn,lvpespawn p, dospath l, . v, . e, envp,. e,. int system(char *command) msdoscommanddos ,math.hstdlib.hctype.hfloat.h char *ecvt(double value,int ndigit,int *decpt,int *sign) value char *fcvt(double value,int ndigit,int *decpt,int *sign) value char *gcvt(double value,int ndigit,char *buf) valuebuf,buf char *ultoa(unsigned long value,char *string,int radix) value,radix char *ltoa(long value,char *string,int radix) value,radix char *itoa(int value,char *string,int radix) valuestring,radix double atof(char *nptr) nptr,0 int atoi(char *nptr) nptr, ,0 long atol(char *nptr) nptr,0 double strtod(char *str,char *endptr)str, long strtol(char *str,char *endptr,int base)str, , int toascii(int c) cascii int tolower(int ch) ch(a-z)(a-z) int _tolower(int ch) ch(a-z) int toupper(int ch) ch(a-z)(a-z) int _toupper(int ch) ch(a-z) ,assert.hmath.h void assert(int test) iftest , void perror(char *string) string: char *strerror(char *str) ,: str: int matherr(struct exception *e) 2005-9-1261.55.212.* 5 () double _matherr(_mexcep why,char *fun,double *arg1p, double *arg2p,double retval) () ,io.hconio.hstat.hdos.hstdio.hsignal.h int kbhit() İ int fgetchar() () int getch() () int putch() () int getchar() () int putchar() () int getche() () int ungetch(int c) c() char *cgets(char *string) ()string int scanf(char *format,argument), ,bios int vscanf(char *format,valist param), ,bios,valist param int cscanf(char *format,argument), , int sscanf(char *string,char *format,argument,)string, int vsscanf(char *string,char *format,vlist param)string, ,vlist param int puts(char *string) string(), bios void cputs(char *string) string(), , int printf(char *format,argument,) () bios int vprintf(char *format,valist param) () bios,valist param int cprintf(char *format,argument,) (), , int vcprintf(char *format,valist param)(), , valist param int sprintf(char *string,char *format,argument,) string int vsprintf(char *string,char *format,valist param) stringint rename(char *oldname,char *newname)oldnamenewname int ioctl(int handle,int cmd,int *argdx,int argcx) /豸 cmd 0 豸 1 豸 2 argcxargdx 3 argdxargcx 2005-9-12 21:46 61.55.212.* 6 4 handle豸(0=,1=a,),cmd=2 5 handle豸(0=,1=a,),cmd=3 6 7 8 ;dos 3.x 11 ;dos 3.x int (*ssignal(int sig,int(*action)()()() int gsignal(int sig) () int _open(char *pathname,int access), access,access access o_rdonly o_wronly o_rdwr o_noinherit , o_denyall o_denywrite o_denyread o_denynone int access,access access o_rdonly o_wronly o_rdwr o_ndelay;unix o_append, o_creat ,;, o_trunc ,0, o_excl ;unix o_binary o_text permiss,: s_iwrite s_iread s_iread|s_iwrite int creat(char *filename,int permiss) filename趨 permiss s_iwrite s_iread s_iread|s_iwrite int _creat(char *filename,int attrib) filename趨 attrib fa_rdonly fa_hidden fa_system 2005-9-12 21:46 61.55.212.* 7 int creatnew(char *filenamt,int attrib) filename趨 attrib fa_rdonly fa_hidden fa_system int creattemp(char *filenamt,int attrib) filename趨 attrib fa_rdonly fa_hidden fa_system int read(int handle,void *buf,int nbyte)handlenbyte buf int _read(int handle,void *buf,int nbyte)handlenbyte buf,msdos. int write(int handle,void *buf,int nbyte)bufnbyte handle int _write(int handle,void *buf,int nbyte)bufnbyte handle int dup(int handle) handle, int dup2(int handle,int newhandle) int eof(int *handle),1,0 long filelength(int handle) handle int setmode(int handle,unsigned mode)趨handle int getftime(int handle,struct ftime *ftime) handle ftime0,ftime struct ftime unsigned ft_tsec:5; /*/ unsigned ft_min:6; /*/ unsigned ft_hour:5; /*/ unsigned ft_day:5; /*/ unsigned ft_month:4;/*/ unsigned ft_year:1; /*-1980*/ int setftime(int handle,struct ftime *ftime) handle, ftime.0.ftime: struct ftime unsigned ft_tsec:5; /*/ unsigned ft_min:6; /*/ unsigned ft_hour:5; /*/ unsigned ft_day:5; /*/ unsigned ft_month:4;/*/ unsigned ft_year:1; /*-1980*/ long lseek(int handle,long offset,int fromwhere) handle fromwhereoffset. seek_set seek_cur seek_end long tell(int handle) handle, int isatty(int handle)豸handle int lock(int handle,long offset,long length) int unlock(int handle,long offset,long length) int close(int handle) handle,handle_creatcreat creatnewcreattempdupdup2_openopen 2005-9-12 21:46 61.55.212.* 8 0-1,unix int _close(int handle) handle,handle_creatcreat creatnewcreattempdupdup2_openopen 0-1,msdos file *fopen(char *filename,char *type) filename, type type /2/ r w a r+ / w+ / a+ / tbbt : #include main() file *fp; fp=fopen(“c:wpswps.exe“,“r+b“); file *fdopen(int ahndle,char *type) file *freopen(char *filename,char *type,file *stream) int getc(file *stream) stream int p

温馨提示

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

评论

0/150

提交评论