- 數學 math.h
- double fabs(double);
- double fmax(double, double);
- double fmin(double, double);
- double remainder(double, double);
- double fma(double, double, double);
- double round(double);
- double sqrt(double);
- double cbrt(double);
- double pow(double, double);
- double hypot(double, double);
- double sin(double);
- double cos(double);
- double tan(double);
- double log(double);
- double log2(double);
- double log10(double);
- 字元測試 ctype.h
- int isdigit(int);
- int isalpha(int);
- int isalnum(int);
- int isxdigit(int);
- int islower(int);
- int isupper(int);
- int isascii(int);
- int isblank(int);
- int isspace(int);
- int iscntrl(int);
- int ispunct(int);
- int isprint(int);
- int isgraph(int);
- int tolower(int);
- int toupper(int);
- 字串處理 string.h
- char *strcpy(char *s1, const char *s2);
- char *strncpy(char *s1, const char *s2, size_t n);
- char *strcat(char *s1, const char *s2);
- char *strncat(char *s1, const char *s2, size_t);
- int strcmp(const char *s1, const char *s2);
- int strncmp(const char *s1, const char *s2, size_t n);
- char *strchr(const char *s, int c);
- size_t strcspn(const char *s1, const char *s2);
- size_t strspn(const char *s1, const char *s2);
- char *strpbrk(const char *s1, const char *s2);
- char *strrchr(const char *s, int c);
- char *strstr(const char *s1, const char *s2);
- char *strtok(char *s1, const char *s2);
- size_t strlen(const char *s);
- void *memcpy(void *s1, const void *s2, size_t n);
- void *memmove(void *s1, const void *s2, size_t n);
- int memcmp(const void *s1, const void *s2, size_t n);
- void *memchr(const void *s, int c, size_t n);
- void *memset(void *s, int c, size_t n);
- 通用工具 stdlib.h
- double atof(const char *);
- int atoi(const char *);
- double strtod(const char *s, char **r);
- long strtol(const char *s, char **r, int base);
- void *bsearch(const void *key, const void *base, size_t n, size_t size, int (*cmp)(const void *keyval, const void *datum));
- void qsort(void *base, size_t n, size_t size, int (*cmp)(const void *, const void *));
- void *calloc(size_t nobj, size_t size);
- void *malloc(size_t size);
- void *realloc(void *ptr, size_t size);
- void free(void *ptr);
- void abort(void);
- void exit(int);
- int system(const char *s);
- int rand(void);
- void srand(unsigned int seed)
- 時間 time.h
- clock_t clock(void);
- time_t time(time_t* timer);
- double difftime(time_t timer2, time_t timer1);
- time_t mktime(struct tm* ptm);
- struct tm* localtime(const time_t* timer);
- char *asctime(const struct tm* tmptr);
- char* ctime(const time_t* timer);
- size t strftime(char* s, size t n, const char* format, const struct tm* tptr);
- 輸出與輸入 stdio.h
- int getchar(void);
- char *gets(char *s);
- int putchar(int c);
- int puts(const char *s);
- int printf(const char *format, ...);
- int sprintf(char *s, const char *format, ...);
- int scanf(const char *format, ...);
- int sscanf(char *s, const char *format, ...);
- 檔案處理 stdio
- FILE *fopen(const char *filename, const char *mode);
- FILE *freopen(const char *filename, const char *mode, FILE *stream);
- int fflush(FILE *stream);
- int fclose(FILE *stream);
- int remove(const char *filename);
- int rename(const char *oldname, const char *newname);
- int fprintf(FILE *stream, const char *format, ...);
- int fscanf(FILE *stream, const char *format, ...);
- int fgetc(FILE *stream);
- char *fgets(char *s, int n, FILE *stream);
- int fputs(const char *s, FILE *stream);
- int fputs(const char *s, FILE *stream);
- size_t fread(void *ptr, size_t size, siz_t nobj, FILE *stream)
- size_t fwrite(const void *ptr, size_t size, size_t nobj, FILE *stream)
- int fseek(FILE *stream, long offset, int origin);
- long ftell(FILE *stream);
- void rewind(FILE *stream);
您也可以直接由 C 語言標準函數庫分類導覽,查找您所需要參考的項目。
目前本站提供六個標頭檔 math.h 、 ctype.h 、 string.h 、 time.h 、 stdlib.h 、 stdio.h 等的相關介紹,日後會陸續補齊其他標頭檔的說明。
沒有留言:
張貼留言