C标准库
索引:
1 输入与输出
1.1 文件操作
1.1.1 fopen
1.1.2 freopen
1.1.3 fflush
1.1.4 fclose
1.1.5 remove
1.1.6 rename
1.1.7 tmpfile
1.1.8 tmpnam
1.1.9 setvbuf
1.1.10 setbuf
1.2 格式化输出
1.2.1 fprintf
1.2.2 printf
1.2.3 sprintf
1.2.4 snprintf
1.2.5 vprintf
1.2.6 vfprintf
1.2.7 vsprintf
1.2.8 vsnprintf
1.3 格式化输入
1.3.1 fscanf
1.3.2 scanf
1.3.3 sscanf
1.4 字符输入输出函数
1.4.1 fgetc
1.4.2 fgets
1.4.3 fputc
1.4.4 fputs
1.4.5 getc
1.4.6 getchar
1.4.7 gets
1.4.8 putc
1.4.9 putchar
1.4.10 puts
1.4.11 ungetc
1.5 直接输入输出函数
1.5.1 fread
1.5.2 fwrite
1.6 文件定位函数
1.6.1 fseek
1.6.2 ftell
1.6.3 rewind
1.6.4 fgetpos
1.6.5 fsetpos
1.7 错误处理函数
1.7.1 clearerr
1.7.2 feof
1.7.3 ferror
1.7.4 perror
2 字符类测试
2.1 isalnum
2.2 isalpha
2.3 iscntrl
2.4 isdigit
2.5 isgraph
2.6 islower
2.7 isprint
2.8 ispunct
2.9 isspace
2.10 isupper
2.11 isxdigit
2.12 tolower
2.13 toupper
3 字符串函数
3.1 strcpy
3.2 strncpy
3.3 strcat
3.4 strncat
3.5 strcmp
3.6 strncmp
3.7 strchr
3.8 strrchr
3.9 strspn
3.10 strcspn
3.11 strpbrk
3.12 strstr
3.13 strlen
3.14 strerror
3.15 strtok
3.16 memcpy
3.17 memmove
3.18 memcmp
3.19 memchr
3.20 memset
4 数学函数
4.1 sin
4.2 cos
4.3 tan
4.4 asin
4.5 acos
4.6 atan
4.7 atan2
4.8 sinh
4.9 cosh
4.10 tanh
4.11 exp
4.12 log
4.13 log10
4.14 pow
4.15 sqrt
4.16 ceil
4.17 floor
4.18 fabs
4.19 ldexp
4.20 frexp
4.21 modf
4.22 fmod
5 实用函数
5.1 atof
5.2 atoi
5.3 atol
5.4 strtod
5.5 strtol
5.6 strtoul
5.7 rand
5.8 srand
5.9 calloc
5.10 malloc
5.11 realloc
5.12 free
5.13 abort
5.14 exit
5.15 atexit
5.16 system
5.17 getenv
5.18 bsearch
5.19 qsort
5.20 abs
5.21 labs
5.22 div
5.23 ldiv
6 诊断
6.1 assert
7 变长变元表
7.1 va_start
7.2 va_arg
7.3 va_end
8 非局部跳转
8.1 setjmp
8.2 longjmp
9 信号处理
9.1 signal
9.2 raise
10 日期与时间函数
10.1 clock
10.2 time
10.3 difftime
10.4 mktime
10.5 asctime
10.6 ctime
10.7 gmtime
10.8
相关文档:
本人在做毕设的时候遇到的一些问题,在这里总结一下,希望会对大家有些帮助~有不足之处还望指出,大家共同进步^_^
一、基本介绍:
1.运行环境VC6.0(Microsoft Visual C++ 6.0)(http://40.duote.org/microsoft_visualc6.zip)
2.课题相关内容:AVS视频编码
二、出现的问题及解决方法:
1.问题:
fatal er ......
我从数据库动态读取2个父节点:
111
a
a1
b
b1
c
&n ......
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/wait.h>
#define QLEN 20
# ......
数组是类型相同的对象的序列,其中的对象称为数组元素。也可以将数组想像成一连串的用下标值编号的相邻存储区。
可能在某些编程语言中,一个下标变量是不允许超出数组定义中所设的界限的。但是在C和C++中,数组是没有这种安全措施的。下面先来看看数组下标越界的几种异常结果。
&nb ......
C 程序有下面几个部分组成:
1 正文段:这是CPU 执行的机器指令的部分。通常正文段是可以共享的,所以即使是频繁执行的程序(如:文本编辑器)在存储器上也只有一个副本。另外正文段常常是只读的,以防止程序因为意外而修改其自身的指令。
2 初始化数据段:通常将此段称为数据段,它包含了程序 ......