请教函数名

「已注销」 2011-05-19 12:04:47
fscanf,fopen叫standard I/O 或者buffered I/O
那open,read,write,close叫什么I/O?
...全文
179 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
冻结 2011-05-19
  • 打赏
  • 举报
回复
[Quote=引用楼主 ncu571633 的回复:]
fscanf,fopen叫standard I/O 或者buffered I/O
那open,read,write,close叫什么I/O?
[/Quote]

叫系统调用。
标准IO == (IO系统调用 + 缓存)
飞天御剑流 2011-05-19
  • 打赏
  • 举报
回复
[Quote=引用楼主 ncu571633 的回复:]
fscanf,fopen叫standard I/O 或者buffered I/O
那open,read,write,close叫什么I/O?
[/Quote]

这四个属于非缓冲函数,都是非标准函数,由于非缓冲函数系统依赖性很高,所以标准只提供缓冲函数。
aozhi 2011-05-19
  • 打赏
  • 举报
回复
类unix文件控制函数?
好像是
AnYidan 2011-05-19
  • 打赏
  • 举报
回复
输入输出功能并不是C语言本身的组成部分

U N I X操作系统的服务通过一系列系统调用来实现,这些系统调用实际上是操作系
统提供的函数,它们可以被用户程序调用。
赵4老师 2011-05-19
  • 打赏
  • 举报
回复
Low-level I/OThese functions invoke the operating system directly for lower-level operation than that provided by stream I/O. Low-level input and output calls do not buffer or format data.

Low-level routines can access the standard streams opened at program startup using the following predefined handles:

Stream Handle
stdin 0
stdout 1
stderr 2


Low-level I/O routines set the errno global variable when an error occurs. You must include STDIO.H when you use low-level functions only if your program requires a constant that is defined in STDIO.H, such as the end-of-file indicator (EOF).

Low-Level I/O Functions

Function Use
_close Close file
_commit Flush file to disk
_creat, _wcreat Create file
_dup Return next available file handle for given file
_dup2 Create second handle for given file
_eof Test for end of file
_lseek, _lseeki64 Reposition file pointer to given location
_open, _wopen Open file
_read Read data from file
_sopen, _wsopen Open file for file sharing
_tell, _telli64 Get current file-pointer position
_umask Set file-permission mask
_write Write data to file


_dup and _dup2 are typically used to associate the predefined file handles with different files.
pmars 2011-05-19
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 supermegaboy 的回复:]

引用楼主 ncu571633 的回复:
fscanf,fopen叫standard I/O 或者buffered I/O
那open,read,write,close叫什么I/O?


这四个属于非缓冲函数,都是非标准函数,由于非缓冲函数系统依赖性很高,所以标准只提供缓冲函数。
[/Quote]
学习了!
rocky_huang 2011-05-19
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 supermegaboy 的回复:]
引用楼主 ncu571633 的回复:
fscanf,fopen叫standard I/O 或者buffered I/O
那open,read,write,close叫什么I/O?


这四个属于非缓冲函数,都是非标准函数,由于非缓冲函数系统依赖性很高,所以标准只提供缓冲函数。
[/Quote]

赞!

70,020

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧