C functions for file operation

getchar

_gettchar

Read a character from standard input.

putchar

_puttchar

Write a character to stdout.

getc

_gettc

Read a character from a stream.

fgetc

_fgettc

fgetc is equivalent to getc, but is implemented only as a function, rather than as a function and a macro.

putc

_puttc

Write a character to a stream

fputc

_fputtc

Equivalent to putc, but implemented only as a function, rather than as a function and a macro.

 

 

 

gets

_getts

Get a line from the stdin stream. gets then replaces the newline character with a null character ('/0') before returning the line.

fgets

_fgetts

Get a string from a stream. the fgets function retains the newline character.

puts

_putts

Write a string to stdout. replacing the string's terminating null character ('/0') with a newline character ('/n') in the output stream.

fputs

_fputfs

Write a string to a stream.

 

 

 

fread

 

Reads data from a stream.

fwrite

 

Writes data to a stream.

 

 

 

_read

 

Reads data from a file.

_write

 

Writes data to a file.

_open

 

Opens a file.

_create

 

Creates a new file.

_close

 

Closes a file.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值