第1章概述1
1.1C語言簡介1
1.2TurboC2.0簡介1
1.2.1概述1
1.2.2TurboC2.0基本配置要求1
1.2.3TurboC2.0集成開發(fā)環(huán)境的使用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章系統(tǒng)調用函數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環(huán)境變量函數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環(huán)境專用函數331
10.1系統(tǒng)管理函數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動態(tài)函數404
10.9.1dlclose函數404
10.9.2dlerror函數404
10.9.3dlopen函數405
10.9.4dlsym函數405
附錄406
A.1C語言關鍵字406
A.2C語言數據類型406