StdcStdio extension

<stdio.h> standard I/O extensions for stdc.

on

Properties

EOF int

Available on Stdc, provided by the StdcStdio extension

End-of-file indicator.
no setter
SEEK_CUR int

Available on Stdc, provided by the StdcStdio extension

Seek from current position.
no setter
SEEK_END int

Available on Stdc, provided by the StdcStdio extension

Seek from end of file.
no setter
SEEK_SET int

Available on Stdc, provided by the StdcStdio extension

Seek from beginning of file.
no setter

Methods

fclose(FILE stream) int

Available on Stdc, provided by the StdcStdio extension

Closes a file stream.
feof(FILE stream) int

Available on Stdc, provided by the StdcStdio extension

Tests the end-of-file indicator for the given stream. Returns a non-zero value if and only if the end-of-file indicator is set.
fflush(FILE stream) int

Available on Stdc, provided by the StdcStdio extension

Flushes a file stream.
fopen(String filename, String mode) FILE?

Available on Stdc, provided by the StdcStdio extension

Opens a file.
fprintf(FILE stream, String format, [List args = const []]) int

Available on Stdc, provided by the StdcStdio extension

Writes formatted output to a stream.
fread(List<int> ptr, int size, int count, FILE stream) int

Available on Stdc, provided by the StdcStdio extension

Reads an array of count elements, each one with a size of size bytes, from the stream.
fseek(FILE stream, int offset, int whence) int

Available on Stdc, provided by the StdcStdio extension

Sets the file position of the stream to the given offset.
ftell(FILE stream) int

Available on Stdc, provided by the StdcStdio extension

Returns the current file position of the stream.
fwrite(List<int> ptr, int size, int count, FILE stream) int

Available on Stdc, provided by the StdcStdio extension

Writes an array of count elements, each one with a size of size bytes, to the stream.
getchar() int

Available on Stdc, provided by the StdcStdio extension

Reads a character from stdin.
gets() String?

Available on Stdc, provided by the StdcStdio extension

Reads a line from stdin into a string.
perror(String s) → void

Available on Stdc, provided by the StdcStdio extension

Prints an error message to stderr.
printf(String format, [List args = const []]) int

Available on Stdc, provided by the StdcStdio extension

Prints formatted output to stdout, returning the number of characters written.
putchar(int char) int

Available on Stdc, provided by the StdcStdio extension

Writes a character to stdout.
puts(String str) int

Available on Stdc, provided by the StdcStdio extension

Writes a string to stdout, appended with a newline.
remove(String filename) int

Available on Stdc, provided by the StdcStdio extension

Deletes a file.
rename(String old_filename, String new_filename) int

Available on Stdc, provided by the StdcStdio extension

Renames a file.
rewind(FILE stream) → void

Available on Stdc, provided by the StdcStdio extension

Sets the file position of the stream to the beginning of the file.
scanf(String format) List

Available on Stdc, provided by the StdcStdio extension

Reads one line from stdin and parses it according to format.
snprintf(int n, String format, [List args = const []]) String

Available on Stdc, provided by the StdcStdio extension

Writes formatted output to a String, truncated to at most n-1 characters.
sprintf(String format, [List args = const []]) String

Available on Stdc, provided by the StdcStdio extension

Formats arguments into a String according to format.
sscanf(String str, String format) List

Available on Stdc, provided by the StdcStdio extension

Parses the string str according to format and returns matched values.
tmpfile() FILE?

Available on Stdc, provided by the StdcStdio extension

Creates a temporary binary file.
tmpnam([List<int>? str]) String

Available on Stdc, provided by the StdcStdio extension

Generates a valid temporary file name.
vprintf(String format, va_list arg) int

Available on Stdc, provided by the StdcStdio extension

Prints formatted output to stdout using a va_list, returning the character count.
vsprintf(String format, va_list arg) String

Available on Stdc, provided by the StdcStdio extension

Formats arguments into a String using a va_list.