fgetc, fgetchar 的区别
一句话总结:
fgetchar = fgetc(stdin)
以下转载自:http://support.tenasys.com/INtimeHelp_5/fgetc.html
详细说明:
Fgetc reads a single character from the current position of the specified stream and increments the file pointer to the next character; fgetchar reads from stdin.
#include <stdio.h>int fgetc (FILE *stream);int fgetchar (void);
Parameters
-
stream
- Pointer to FILE structure.
Remarks
fgetchar is equivalent to:
fgetc (stdin)
Fgetc and fgetchar are identical to getc and getchar, but they are functions, not macros.
Return Values
- The integer value of the character read.
- Success.
- EOF on error or end-of-file.
- Since EOF is a legal integer value, use feof or ferror to distinguish between an error and an end-of-file condition.
Requirements
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdio.h | stdio.h | clib.lib |
See Also
feof, ferror, fputc, fputchar, getc, getchar
fgetc, fgetchar 的区别相关推荐
- c语言get()的作用,c语言get函数的用法有哪些
C语言中gets从标准输入设备读字符串函数,可以无限读取,不会判断上限,今天学习啦小编在这里为大家介绍C语言get函数的用法,欢迎大家阅读! c语言get函数的用法:int getc(FILE *st ...
- C语言get函数汇总
转载自新浪博客:http://blog.sina.com.cn/s/blog_590be5290100kaeg.html 1.int getc(FILE *stream); 从指定输入流 stream ...
- C语言中fgetc()、fgets()之间的区别
在学习文件那一快关于读写文件中的字符让我折腾了一阵子,总是把这几个函数混淆,今天有时间就整理下,并分享下个人的心得,希望对大家有帮助. 1.fgetc() 和 fgets() 之间的区别 fgetc ...
- C语言输入不同字符 屏幕显示不同,c语言中易混淆的东西 1 getch() getche()和getchar()之间区别 scanf sscanf (fscanf fgets fgetc )...
getch() getche()和getchar()之间区别 发布人 : IT专家 发布时间 : 2009-10-21 07:52:23.0 首先不要忘了,要用getch()必须引入头文件conio. ...
- getc与fgetc的区别
从apue上, 我们学到, fgetc一定是函数, 而getc可能由宏来实现(但不一定). 这就是两者的差别, 我们先来看看VC++6.0中的实现吧: #include <stdio.h> ...
- 区分C语言中getch、getche、fgetc、getc、getchar、fgets、gets
首先,这两个函数不是C标准库中的函数, int getch(void) //从标准输入读入一个字符,当你用键盘输入的时候,屏幕不显示你所输入的字符.也就是,不带回显. int getche(v ...
- 浅谈无缓存I/O操作和标准I/O文件操作区别 (转载)
首先,先稍微了解系统调用的概念: 系统调用,英文名system call,每个操作系统都在内核里有一些内建的函数库,这些函数可以用来完成一些系统系统调用把应用程序的请求传给内核,调用相应的的内核函数完 ...
- 总结open与fopen的区别
对于这两个名字很类似的函数,对于很多初学者来说,不容易搞清楚它们有什么不同,只知道按照函数用法使用. 如果能很好的区分两者,相信大家对于C语言和UNIX系统(包括LINUX)有更深入的了解. 在网上查 ...
- 基础:open和fopen的区别
1.缓冲文件系统:fopen, fclose, fread, fwrite, fgetc, fgets, fputc, fputs, freopen, fseek, ftell, rewind等. 缓 ...
最新文章
- php time相差12小时_优化你的PHP代码,从现在做起
- 巨变的时代、人工智能AI带来颠覆性的影响、技术十大趋势
- radware Alten系列的HA配置
- 数据结构排序、查找算法
- VALSE2019总结(2)-以人为中心的视觉理解
- Java中throw和throws的区别
- php zip下载损坏,php – 从zip中提取时损坏图像
- 看到这个机器学习项目经历,面试官跟我聊嗨了
- java语言精粹_java 成神之路 (一)
- [精简]托福核心词汇62
- 安装python时无法访问筛选器,如何使用Python筛选器功能(详解)
- 大数据开发教程——企业级离线数据仓库项目实战开发
- Android 8.1 应用安装过程总结
- 如何使用repo管理本地私有仓库
- Android单元测试的步骤
- 电子商务的概念及应用
- 2022暑假牛客多校1 (A/G/D/I)
- 2977:生理周期(枚举)
- 你了解石墨烯的特性、应用?都有什么?
- 校园人到企业人的转变