C 速查手冊
11.8 標準程式庫分類索引
- 11.1 數學 math.h
- 11.2 字元測試 ctype.h
- 11.3 字串處理 string.h
- 11.3.1 char *strcpy(char *s1, const char *s2);
- 11.3.2 char *strncpy(char *s1, const char *s2, size_t n);
- 11.3.3 char *strcat(char *s1, const char *s2);
- 11.3.4 char *strncat(char *s1, const char *s2, size_t);
- 11.3.5 int strcmp(const char *s1, const char *s2);
- 11.3.6 int strncmp(const char *s1, const char *s2, size_t n);
- 11.3.7 char *strchr(const char *s, int c);
- 11.3.8 size_t strcspn(const char *s1, const char *s2);
- 11.3.9 size_t strspn(const char *s1, const char *s2);
- 11.3.10 char *strpbrk(const char *s1, const char *s2);
- 11.3.11 char *strrchr(const char *s, int c);
- 11.3.12 char *strstr(const char *s1, const char *s2);
- 11.3.13 char *strtok(char *s1, const char *s2);
- 11.3.14 size_t strlen(const char *s);
- 11.3.15 void *memcpy(void *s1, const void *s2, size_t n);
- 11.3.16 void *memmove(void *s1, const void *s2, size_t n);
- 11.3.17 int memcmp(const void *s1, const void *s2, size_t n);
- 11.3.18 void *memchr(const void *s, int c, size_t n);
- 11.3.19 void *memset(void *s, int c, size_t n);
- 11.4 通用工具 stdlib.h
- 11.4.1 double atof(const char *);
- 11.4.2 int atoi(const char *);
- 11.4.3 double strtod(const char *s, char **r);
- 11.4.4 long strtol(const char *s, char **r, int base);
- 11.4.5 void *bsearch(const void *key, const void *base, size_t n, size_t size, int (*cmp)(const void *keyval, const void *datum));
- 11.4.6 void qsort(void *base, size_t n, size_t size, int (*cmp)(const void *, const void *));
- 11.4.7 void *calloc(size_t nobj, size_t size);
- 11.4.8 void *malloc(size_t size);
- 11.4.9 void *realloc(void *ptr, size_t size);
- 11.4.10 void free(void *ptr);
- 11.4.11 void abort(void);
- 11.4.12 void exit(int);
- 11.4.13 int system(const char *s);
- 11.4.14 int rand(void);
- 11.4.15 void srand(unsigned int seed);
- 11.5 時間 time.h
- 11.6 輸出與輸入 stdio.h
- 11.7 檔案處理 stdio.h
- 11.7.1 FILE *fopen(const char *filename, const char *mode);
- 11.7.2 FILE *freopen(const char *filename, const char *mode, FILE *stream);
- 11.7.3 int fflush(FILE *stream);
- 11.7.4 int fclose(FILE *stream);
- 11.7.5 int remove(const char *filename);
- 11.7.6 int rename(const char *oldname, const char *newname);
- 11.7.7 int fprintf(FILE *stream, const char *format, ...);
- 11.7.8 int fscanf(FILE *stream, const char *format, ...);
- 11.7.9 int fgetc(FILE *stream);
- 11.7.10 char *fgets(char *s, int n, FILE *stream);
- 11.7.11 int fputc(const char *s, FILE *stream);
- 11.7.12 int fputs(const char *s, FILE *stream);
- 11.7.13 size_t fread(void *ptr, size_t size, siz_t nobj, FILE *stream)
- 11.7.14 size_t fwrite(const void *ptr, size_t size, size_t nobj, FILE *stream);
- 11.7.15 int fseek(FILE *stream, long offset, int origin);
- 11.7.16 long ftell(FILE *stream);
- 11.7.17 void rewind(FILE *stream);