IT入门 > 教程 >

  • C 库函数 - fgetpos()

    日期:2022-10-12 18:27:28 点击:3514 好评:0

    描述 C 库函数 int fgetpos(FILE *stream, fpos_t *pos) 获取流 stream 的当前文件位置,并把它写入到 pos 。 声明 下面是 fgetpos() 函数的声明。 int fgetpos(FILE *stream, fpos_t *pos) 参数 stream -- 这是指向...

  • C 库函数 - fputc()

    日期:2022-10-12 18:27:28 点击:6209 好评:0

    描述 C 库函数 int fputc(int char, FILE *stream) 把参数 char 指定的字符(一个无符号字符)写入到指定的流 stream 中,并把位置标识符往前移动。 声明 下面是 fputc() 函数的声明。 int fputc(int...

  • C 库函数 - gets()

    日期:2022-10-12 18:27:28 点击:1339 好评:0

    描述 C 库函数 char *gets(char *str) 从标准输入 stdin 读取一行,并把它存储在 str 所指向的字符串中。当读取到换行符时,或者到达文件末尾时,它会停止,具体视情况而定。 声明 下面是...

  • C 库函数 - putchar()

    日期:2022-10-12 18:27:28 点击:3232 好评:0

    描述 C 库函数 int putchar(int char) 把参数 char 指定的字符(一个无符号字符)写入到标准输出 stdout 中。 声明 下面是 putchar() 函数的声明。 int putchar(int char) 参数 char -- 这是要被写入的字符...

  • C 库函数 - puts()

    日期:2022-10-12 18:27:28 点击:787 好评:0

    描述 C 库函数 int puts(const char *str) 把一个字符串写入到标准输出 stdout,直到空字符,但不包括空字符。换行符会被追加到输出中。 声明 下面是 puts() 函数的声明。 int puts(const char *str...

  • C 库函数 - snprintf()

    日期:2022-10-12 18:27:28 点击:9430 好评:0

    描述 C 库函数 int snprintf(char *str, size_t size, const char *format, ...) 设将可变参数 (...) 按照 format 格式化成字符串,并将字符串复制到 str 中, size 为要写入的字符的最大数目,超过 size 会被...

  • C 库函数 - atoi()

    日期:2022-10-12 18:27:28 点击:3980 好评:0

    描述 C 库函数 int atoi(const char *str) 把参数 str 所指向的字符串转换为一个整数(类型为 int 型)。 声明 下面是 atoi() 函数的声明。 int atoi(const char *str) 参数 str -- 要转换为整数的字符串。...

  • C 库函数 - atol()

    日期:2022-10-12 18:27:28 点击:7232 好评:0

    描述 C 库函数 long int atol(const char *str) 把参数 str 所指向的字符串转换为一个长整数(类型为 long int 型)。 声明 下面是 atol() 函数的声明。 long int atol(const char *str) 参数 str -- 要转换为长...

  • C 库函数 - strtol()

    日期:2022-10-12 18:27:28 点击:10230 好评:0

    描述 C 库函数 long int strtol(const char *str, char **endptr, int base) 把参数 str 所指向的字符串根据给定的 base 转换为一个长整数(类型为 long int 型),base 必须介于 2 和 36(包含)之间,或者是...

  • C 库函数 - free()

    日期:2022-10-12 18:27:28 点击:6383 好评:0

    描述 C 库函数 void free(void *ptr) 释放之前调用 calloc、malloc 或 realloc 所分配的内存空间。 声明 下面是 free() 函数的声明。 void free(void *ptr) 参数 ptr -- 指针指向一个要释放内存的内存块,该...

广告位API接口通信错误,查看德得广告获取帮助