C函数实用手册

C函数实用手册
作 者: 张曜 郭立山 吴天
出版社: 冶金工业出版社
丛编项:
版权说明: 本书为出版图书,暂不支持在线阅读,请支持正版图书
标 签: C
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

暂缺《C函数实用手册》作者简介

内容简介

众所周知,C语言是一种很常用的编程语言,它提供了大量的库函数。本书按照函数功能的不同,将C语言的库函数进行了分类,以方便广大的C语言使用者查阅。书中的每个函数都列出了功能说明,并且有详细的可以直接编译运行的示例程序。本书内容丰富,结构清晰,重点突出,既可作为以C语言为编程语言的程序员的工具书,也可以作为高等院校计算机专业的师生、广大计算机爱好者和C语言用户的自学与参考资料。

图书目录

第1章概述1

1.1C语言简介1

1.2TurboC2.0简介1

1.2.1概述1

1.2.2TurboC2.0基本配置要求1

1.2.3TurboC2.0集成开发环境的使用1

1.3GCC简介3

1.4C语法简介4

1.4.1数据类型4

1.4.2常量与变量4

1.4.3运算符和表达式5

1.4.4语句6

1.4.5数组11

1.4.6指针12

1.4.7函数12

1.4.8结构体与共用体13

1.5如何使用本书14

第2章数学函数16

2.1常用代数函数16

2.1.1ceil函数16

2.1.2div函数16

2.1.3floor函数17

2.1.4fmod函数17

2.1.5ldiv函数18

2.1.6max函数18

2.1.7min函数18

2.1.8poly函数19

2.1.9sqrt函数19

2.2绝对值函数20

2.2.1abs函数20

2.2.2cabs函数20

2.2.3fabs函数21

2.2.4labs函数21

2.3指数与对数运算函数21

2.3.1exp函数21

2.3.2ldexp,ldexpl函数22

2.3.3log,logl函数22

2.3.4log10,log10l函数23

2.3.5pow函数23

2.3.6pow10函数24

2.4三角函数24

2.4.1acos,acosl函数24

2.4.2asin,asinl函数24

2.4.3atan函数25

2.4.4atan2,atan2l函数25

2.4.5cos函数26

2.4.6cosh函数26

2.4.7hypot函数26

2.4.8sin函数27

2.4.9sinh函数27

2.4.10tan,tanl函数28

2.4.11tanh,tanhl函数28

2.5浮点数函数28

2.5.1_clear87函数28

2.5.2_status87函数29

2.5.3frexp函数29

2.5.4modf,modfl函数30

2.6随机数函数30

2.6.1drand48函数30

2.6.2erand48函数31

2.6.3jrand48函数31

2.6.4lcong48函数32

2.6.5lrand48函数32

2.6.6mrand48函数33

2.6.7nrand48函数33

2.6.8rand函数34

2.6.9random函数34

2.6.10randomize函数34

2.6.11seed48函数35

2.6.12srand函数35

2.6.13srand48函数36

2.6.14srandom函数36

第3章字符串函数38

3.1字符串操作函数38

3.1.1stpcpy函数38

3.1.2strcat函数38

3.1.3strchr函数39

3.1.4strcmp函数39

3.1.5strcmpi函数40

3.1.6strcpy函数41

3.1.7strcspn函数41

3.1.8strdup函数42

3.1.9stricmp函数42

3.1.10strlen函数43

3.1.11strncat函数43

3.1.12strncmp函数44

3.1.13strncmpi函数44

3.1.14strncpy函数45

3.1.15strnicmp函数45

3.1.16strnset函数46

3.1.17strpbrk函数46

3.1.18strrchr函数47

3.1.19strrev函数48

3.1.20strset函数48

3.1.21strspn函数48

3.1.22strstr函数49

3.1.23strtok函数49

3.1.24swab函数50

3.1.25ungetc函数50

3.1.26ungetch函数51

3.2类型判别函数52

3.2.1isalnum函数52

3.2.2isalpha函数52

3.2.3isascii函数53

3.2.4iscntrl函数53

3.2.5isdigit函数54

3.2.6isgraph函数54

3.2.7islower函数55

3.2.8isprint函数56

3.2.9ispunct函数56

3.2.10isspace函数57

3.2.11isupper函数57

3.2.12isxdigit函数58

3.3类型转换函数59

3.3.1atof函数59

3.3.2atoi函数59

3.3.3atol函数59

3.3.4ecvt函数60

3.3.5fcvt函数60

3.3.6gcvt函数61

3.3.7itoa函数62

3.3.8ltoa函数62

3.3.9mbstowcs函数63

3.3.10mbtowc函数63

3.3.11strlwr函数64

3.3.12strtod函数65

3.3.13strtol函数65

3.3.14strtoul函数66

3.3.15strupr函数66

3.3.16toascii函数67

3.3.17tolower函数67

3.3.18toupper函数68

3.3.19ultoa函数68

3.3.20wcstombs函数69

3.3.21wctomb函数69

第4章输入/输出函数71

4.1初级输入/输出函数71

4.1.1_creat,creat函数71

4.1.2close函数72

4.1.3dup函数73

4.1.4dup2函数73

4.1.5flock函数74

4.1.6fsync函数75

4.1.7eof函数76

4.1.8lseek函数77

4.1.9mktemp函数78

4.1.10open函数78

4.1.11read函数79

4.1.12setmode函数80

4.1.13sopen函数81

4.1.14sync函数82

4.1.15tell函数83

4.1.16write函数84

4.2标准输入/输出函数85

4.2.1fclose函数85

4.2.2fcloseall函数86

4.2.3fdopen函数86

4.2.4feof函数87

4.2.5fflush函数88

4.2.6fgetc函数89

4.2.7fgetchar函数89

4.2.8fgetpos函数90

4.2.9fgets函数91

4.2.10fileno函数91

4.2.11flushall函数92

4.2.12fopen函数93

4.2.13fputc函数94

4.2.14fputchar函数94

4.2.15fread函数95

4.2.16fseek函数96

4.2.17fwrite函数96

4.2.18getc函数97

4.2.19getchar函数98

4.2.20gets函数98

4.2.21getw函数99

4.2.22putc函数99

4.2.23putch函数100

4.2.24putchar函数100

4.2.25puts函数101

4.2.26putw函数101

4.2.27rewind函数102

4.2.28setbuf函数103

4.2.29setvbuf函数103

4.2.30tmpfile函数104

4.3格式化输入/输出函数105

4.3.1cprintf函数107

4.3.2cscanf函数107

4.3.3fprintf函数108

4.3.4fscanf函数109

4.3.5fsetpos函数110

4.3.6fstat函数111

4.3.7ftell函数112

4.3.8printf函数113

4.3.9scanf函数113

4.3.10sprintf函数114

4.3.11sscanf函数115

4.3.12vfprintf函数116

4.3.13vfscanf函数117

4.3.14vprintf函数118

4.3.15vscanf函数119

4.3.16vsprintf函数120

4.3.17vsscanf函数120

4.4键盘专用函数121

4.4.1cgets函数121

4.4.2getch函数122

4.4.3getche函数122

4.4.4getpass函数123

4.4.5kbhit函数123

4.4.6ungetch函数124

4.5屏幕专用函数125

4.5.1_setcursortype函数125

4.5.2clreol函数125

4.5.3clrscr函数126

4.5.4cputs函数126

4.5.5delline函数127

4.5.6gettext函数128

4.5.7gettextinfo函数129

4.5.8gotoxy函数130

4.5.9highvideo函数131

4.5.10insline函数131

4.5.11lowvideo函数132

4.5.12movetext函数132

4.5.13normvideo函数133

4.5.14putch函数134

4.5.15puttext函数134

4.5.16textattr函数135

4.5.17textbackground函数136

4.5.18textcolor函数136

4.5.19textmode函数137

4.5.20wherex,wherey函数138

4.5.21window函数138

4.6端口输入/输出函数139

4.6.1inp函数139

4.6.2inport函数139

4.6.3inportb函数140

4.6.4inpw函数140

4.6.5outp函数141

4.6.6outport函数141

4.6.7outportb函数142

4.6.8outpw函数142

第5章内存相关函数143

5.1内存管理函数143

5.1.1alloca函数143

5.1.2allocmem函数143

5.1.3brk函数144

5.1.4calloc函数144

5.1.5coreleft函数145

5.1.6farcalloc函数145

5.1.7farcoreleft函数146

5.1.8farfree函数146

5.1.9farmalloc函数147

5.1.10farrealloc函数147

5.1.11free函数148

5.1.12freemem函数148

5.1.13getpagesize函数149

5.1.14malloc函数149

5.1.15mmap函数150

5.1.16munmap函数151

5.1.17realloc函数151

5.1.18sbrk函数152

5.1.19setblock函数152

5.2内存操作函数153

5.2.1farheapcheck函数153

5.2.2farheapcheckfree函数153

5.2.3farheapchecknode函数154

5.2.4farheapfillfree函数155

5.2.5farheapwalk函数156

5.2.6FP_OFF函数157

5.2.7FP_SEG函数157

5.2.8heapcheck函数157

5.2.9heapcheckfree函数158

5.2.10heapchecknode函数159

5.2.11heapfillfree函数160

5.2.12heapwalk函数161

5.2.13memccpy函数161

5.2.14memchr函数162

5.2.15memcmp函数162

5.2.16memcpy函数163

5.2.17memicmp函数164

5.2.18memmove函数164

5.2.19memset函数165

5.2.20MK_FP函数165

5.2.21movedata函数166

5.2.22movmem函数166

5.2.23peek,peekb函数167

5.2.24poke,pokeb函数167

5.2.25setmem函数168

5.2.26swab函数168

第6章磁盘.目录和文件函数170

6.1磁盘函数170

6.1.1absread函数170

6.1.2abswrite函数170

6.1.3getdta函数171

6.1.4setdta函数171

6.2目录函数172

6.2.1_dos_findfirst函数172

6.2.2_dos_findnext函数173

6.2.3_makepath函数174

6.2.4_splitpath函数175

6.2.5chdir函数175

6.2.6chroot函数176

6.2.7closedir函数176

6.2.8fchdir函数177

6.2.9findfirst函数178

6.2.10findnext函数179

6.2.11fnmerge函数179

6.2.12fnsplit函数180

6.2.13ftw函数181

6.2.14get_current_dir_name函数181

6.2.15getcurdir函数182

6.2.16getcwd函数182

6.2.17getdisk函数183

6.2.18getwd函数183

6.2.19mkdir函数184

6.2.20mktemp函数184

6.2.21nftw函数185

6.2.22opendir函数185

6.2.23readdir函数186

6.2.24rewinddir函数187

6.2.25rmdir函数187

6.2.26scandir函数188

6.2.27searchpath函数189

6.2.28seekdir函数189

6.2.29setdisk函数190

6.2.30telldir函数190

6.2.31unlink函数191

6.2.32unlock函数192

6.3文件函数192

6.3.1access函数192

6.3.2chmod函数193

6.3.3chown函数194

6.3.4chsize函数194

6.3.5creatnew函数195

6.3.6creattemp函数196

6.3.7fchmod函数196

6.3.8filelength函数197

6.3.9fstat函数197

6.3.10ftruncate函数198

6.3.11getftime函数199

6.3.12lchown函数200

6.3.13link函数201

6.3.14lock函数202

6.3.15locking函数202

6.3.16lstat函数203

6.3.17readlink函数204

6.3.18remove函数205

6.3.19rename函数205

6.3.20stat函数206

6.3.21symlink函数207

6.3.22tempnam函数207

6.3.23tmpnam函数208

6.3.24umask函数208

6.3.25unlink函数209

6.3.26utime函数210

6.3.27utimes函数210

第7章图形函数212

7.1设备设置函数212

7.1.1_graphfreemem函数212

7.1.2_graphgetmem函数213

7.1.3cleardevice函数214

7.1.4clearviewport函数214

7.1.5closegraph函数215

7.1.6detectgraph函数215

7.1.7getaspectratio函数216

7.1.8getdefaultpalette函数217

7.1.9getdrivername函数217

7.1.10getfillpattern函数218

7.1.11getgraphmode函数219

7.1.12getmodename函数219

7.1.13getmoderange函数220

7.1.14getpalette函数220

7.1.15getviewsettings函数221

7.1.16graphdefaults函数222

7.1.17grapherrormsg函数223

7.1.18graphresult函数223

7.1.19initgraph函数224

7.1.20installuserdriver函数225

7.1.21installuserfont函数226

7.1.22registerbgidriver函数227

7.1.23restorecrtmode函数228

7.1.24setactivepage函数228

7.1.25setallpalette函数229

7.1.26setaspectratio函数230

7.1.27setfillpattern函数231

7.1.28setgraphbufsize函数232

7.1.29setgraphmode函数232

7.1.30setpalette函数233

7.1.31setrgbpalette函数234

7.1.32setviewport函数235

7.1.33setvisualpage函数235

7.2属性配置函数236

7.2.1getbkcolor函数236

7.2.2getcolor函数236

7.2.3getfillsettings函数237

7.2.4getlinesettings函数238

7.2.5getmaxcolor函数239

7.2.6setbkcolor函数239

7.2.7setcolor函数240

7.2.8setfillstyle函数240

7.2.9setlinestyle函数241

7.2.10setwritemode函数241

7.3图形显示函数242

7.3.1arc函数242

7.3.2bar函数243

7.3.3bar3d函数243

7.3.4circle函数244

7.3.5drawpoly函数244

7.3.6ellipse函数245

7.3.7fillellipse函数245

7.3.8fillpoly函数246

7.3.9floodfill函数246

7.3.10getarccoords函数247

7.3.11getimage函数248

7.3.12getmaxx函数248

7.3.13getmaxy函数249

7.3.14getpixel函数249

7.3.15gettextsettings函数250

7.3.16getx函数251

7.3.17gety函数251

7.3.18imagesize函数252

7.3.19line函数252

7.3.20linerel函数253

7.3.21lineto函数253

7.3.22moverel函数254

7.3.23moveto函数254

7.3.24outtext函数255

7.3.25outttextxy函数255

7.3.26pieslice函数256

7.3.27putimage函数256

7.3.28putpixel函数257

7.3.29rectangle函数258

7.3.30sector函数258

7.3.31settextjustify函数259

7.3.32settextstyle函数259

7.3.33setusercharsize函数260

第8章系统调用函数262

8.1BIOS调用函数262

8.1.1_bios_disk函数262

8.1.2_bios_equiplist函数263

8.1.3_bios_keybrd函数263

8.1.4_bios_memsize函数264

8.1.5_bios_printer函数265

8.1.6_bios_serialcom函数265

8.1.7_bios_timeofday函数267

8.1.8bioscom函数267

8.1.9biosdisk函数269

8.1.10biosequip函数270

8.1.11bioskey函数270

8.1.12biosmemory函数271

8.1.13biosprint函数272

8.1.14biostime函数272

8.2DOS调用函数273

8.2.1bdos函数273

8.2.2bdosptr函数274

8.2.3ctrlbrk函数274

8.2.4disable函数275

8.2.5enable函数275

8.2.6geninterrupt函数276

8.2.7getcbrk函数276

8.2.8getdate函数277

8.2.9getdfree函数277

8.2.10getfat函数278

8.2.11getfatd函数279

8.2.12getpsp函数279

8.2.13gettime函数280

8.2.14getvect函数280

8.2.15getverify函数281

8.2.16int86函数281

8.2.17int86x函数282

8.2.18intdos函数283

8.2.19intdosx函数284

8.2.20intr函数285

8.2.21ioctl函数285

8.2.22isatty函数286

8.2.23keep函数287

8.2.24segread函数287

8.2.25setcbrk函数288

8.2.26setvect函数288

8.2.27setverify函数289

8.2.28sound,nosound,delay函数289

8.3程序控制函数290

8.3.1_c_exit函数290

8.3.2_exit函数291

8.3.3abort函数291

8.3.4assert函数292

8.3.5atexit函数292

8.3.6execl,execle,execlp,execlpe函数293

8.3.7execv,execve,execvp,execvpe函数293

8.3.8exit函数294

8.3.9getpid函数295

8.3.10longjmp函数295

8.3.11raise函数296

8.3.12setjmp函数297

8.3.13signal函数298

8.3.14sleep函数298

8.3.15spawnl,spawnle,spawnlp,spawnlpe函数299

8.3.16spawnv,spawnve,spawnvp,spawnlve函数300

8.3.17system函数301

8.4环境变量函数302

8.4.1getenv函数302

8.4.2putenv函数302

第9章其他函数303

9.1日期/时间函数303

9.1.1asctime函数303

9.1.2clock函数303

9.1.3ctime函数304

9.1.4difftime函数304

9.1.5dostounix函数305

9.1.6localtime函数306

9.1.7mktime函数306

9.1.8setdate函数307

9.1.9settime函数308

9.1.10stime函数308

9.1.11time函数309

9.1.12tzset函数309

9.1.13unixtodos函数310

9.2数据结构函数310

9.2.1bsearch函数310

9.2.2lfind函数311

9.2.3lsearch函数312

9.2.4hcreate函数313

9.2.5hdestory函数313

9.2.6hsearch函数314

9.2.7insque函数315

9.2.8qsort函数316

9.2.9remque函数316

9.2.10tdelete函数317

9.2.11tfind函数318

9.2.12tsearch函数319

9.2.13twalk函数320

9.3错误处理函数322

9.3.1assert函数322

9.3.2clearerr函数322

9.3.3dosexterr函数323

9.3.4ferror函数323

9.3.5harderr函数324

9.3.6hardresume函数325

9.3.7matherr函数325

9.3.8perror函数326

9.3.9strerror函数326

9.4其他常用函数326

9.4.1contry函数327

9.4.2getopt函数327

9.4.3select函数328

9.4.4ttyname函数329

第10章UNIX环境专用函数331

10.1系统管理函数331

10.1.1closelog函数331

10.1.2getenv函数331

10.1.3gethostname函数332

10.1.4openlog函数332

10.1.5putenv函数333

10.1.6setenv函数333

10.1.7sethostname函数334

10.1.8syslog函数334

10.1.9unsetenv函数335

10.2用户和组管理函数335

10.2.1cuserid函数336

10.2.2endgrent函数336

10.2.3endpwent函数337

10.2.4endutent函数337

10.2.5fgetgrent函数337

10.2.6fgetpwent函数338

10.2.7getegid函数339

10.2.8geteuid函数339

10.2.9getgid函数340

10.2.10getgrent函数340

10.2.11getgrgid函数341

10.2.12getgrnam函数341

10.2.13getgroups函数342

10.2.14getlogin函数343

10.2.15getpw函数343

10.2.16getpwent函数343

10.2.17getpwnam函数344

10.2.18getpwuid函数345

10.2.19getuid函数345

10.2.20getutent函数346

10.2.21getutid函数347

10.2.22getutline函数348

10.2.23initgroups函数349

10.2.24logwtmp函数350

10.2.25pututline函数350

10.2.26setegid函数351

10.2.27seteuid函数351

10.2.28setfsgid函数352

10.2.29setfsuid函数352

10.2.30setgid函数352

10.2.31setgrent函数353

10.2.32setgroups函数353

10.2.33setpwent函数354

10.2.34setregid函数355

10.2.35setreuid函数355

10.2.36setuid函数356

10.2.37setutent函数356

10.2.38updwtmp函数357

10.2.39utmpname函数358

10.3管道操作函数358

10.3.1mkfifo函数359

10.3.2pclose函数359

10.3.3pipe函数360

10.3.4popen函数361

10.4进程控制函数361

10.4.1fork函数361

10.4.2getpgid函数362

10.4.3getpgrp函数362

10.4.4getpid函数363

10.4.5getppid函数363

10.4.6getpriority函数363

10.4.7nice函数364

10.4.8on_exit函数364

10.4.9setpgid函数365

10.4.10setpgrp函数365

10.4.11setpriority函数366

10.4.12wait函数366

10.4.13waitpid函数367

10.5进程通信函数367

10.5.1ftok函数368

10.5.2msgctl函数368

10.5.3msgget函数369

10.5.4msgrcv函数370

10.5.5msgsnd函数371

10.5.6semctl函数372

10.5.7semget函数373

10.5.8semop函数374

10.5.9shmat函数375

10.5.10shmctl函数376

10.5.11shmdt函数377

10.5.12shmget函数378

10.6信号函数378

10.6.1alarm函数379

10.6.2kill函数379

10.6.3pause函数380

10.6.4psignal函数380

10.6.5raise函数381

10.6.6sigaction函数381

10.6.7sigaddset函数382

10.6.8sigdelset函数382

10.6.9sigemptyset函数383

10.6.10sigfillset函数383

10.6.11sigismember函数384

10.6.12signal函数384

10.6.13sigpause函数385

10.6.14sigpending函数385

10.6.15sigprocmask函数386

10.6.16sigsuspend函数386

10.7网络相关函数387

10.7.1accept函数388

10.7.2bind函数389

10.7.3connect函数389

10.7.4endprotoent函数389

10.7.5endservent函数390

10.7.6gethostbyaddr函数390

10.7.7gethostbyname函数390

10.7.8getprotobyname函数391

10.7.9getprotobynumber函数391

10.7.10getprotoent函数392

10.7.11getservbyname函数392

10.7.12getservbyport函数393

10.7.13getservent函数393

10.7.14getsockopt函数394

10.7.15herror函数394

10.7.16hstrerror函数395

10.7.17htonl函数395

10.7.18htons函数395

10.7.19inet_addr函数395

10.7.20inet_aton函数396

10.7.21inet_ntoa函数396

10.7.22listen函数396

10.7.23ntohl函数396

10.7.24ntohs函数397

10.7.25recv函数397

10.7.26recvfrom函数397

10.7.27recvmsg函数398

10.7.28send函数399

10.7.29sendmsg函数399

10.7.30sendto函数399

10.7.31setprotoent函数400

10.7.32setservent函数400

10.7.33setsockopt函数400

10.7.34shutdown函数400

10.7.35socket函数401

10.8正则表达式函数401

10.8.1regcomp函数401

10.8.2regerror函数402

10.8.3regexec函数403

10.8.4regfree函数403

10.9动态函数404

10.9.1dlclose函数404

10.9.2dlerror函数404

10.9.3dlopen函数405

10.9.4dlsym函数405

附录406

A.1C语言关键字406

A.2C语言数据类型406