C-file-operations-APIs

API name

API description

fopen

open a stream

fdopen

associate a stream with a file descriptor

freopen

open a stream

fclose

close a stream

fmemopen

open a memory buffer stream

fflush

flush a stream

fcloseall

close all open streams

fseek

reposition a stream

ftell

return a file offset in a stream

rewind

reset the file position indicator in a stream

fgetpos

get current file position information

fsetpos

set current file position

fprintf

print formatted output

fscanf

convert formatted input

printf

print formatted output

fprintf

print formatted output

dprintf

print formatted output

sprintf

print formatted output

snprintf

print formatted output

vprintf

format the output of a stdarg argument list

vfprintf

format output of a stdarg argument list

vdprintf

format output of a stdarg argument list

vsprintf

format output of a stdarg argument list

vsnprintf

format output of a stdarg argument list

fgetc

get a byte from a stream

fgets

get a string from a stream

fputc

put a byte on a stream

fputs

put a string on a stream

getc

get a byte from a stream

getchar

get a byte from a stdin stream

ungetc

push byte back into input stream

putc

put a byte on a stream

putchar

put a byte on a stdout stream

puts

put a string on standard output