nulib.c.stdio

Bindings to C standard library I/O functions.

Members

Enums

EOF
anonymousenum EOF
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SEEK_SET
anonymousenum SEEK_SET
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

_wfopen
FILE* _wfopen(const(wchar)* filename, const(wchar)* mode)

Opens the file with the given file name and mode.

_wremove
int _wremove(const(wchar)* path)

Removes the given file.

_wrename
int _wrename(const(wchar)* oldName, const(wchar)* newName)

Renames the given file.

fclose
int fclose(FILE* stream)

Closes the stream.

fflush
int fflush(FILE* stream)

Flushes the stream.

fopen
FILE* fopen(const(char)* filename, const(char)* mode)

Opens the file with the given file name and mode.

fread
size_t fread(void* ptr, size_t size, size_t count, FILE* stream)

Reads data from the stream.

fseek
int fseek(FILE* stream, ptrdiff_t offset, int origin)

Sets the position of the stream.

ftell
ptrdiff_t ftell(FILE* stream)

Gets the current position in the stream.

fwrite
size_t fwrite(const(void)* ptr, size_t size, size_t count, FILE* stream)

Writes data to the stream.

perror
void perror(const(char)* str)

Writes the last reported error to stderr.

printf
int printf(const(char)* format, ...)

Prints a formatted string.

remove
int remove(const(char)* path)

Removes the given file.

rename
int rename(const(char)* oldName, const(char)* newName)

Renames the given file.

rewind
void rewind(FILE* stream)

Sets the position of the stream to its beginning.

scanf
int scanf(const(char)* format, ...)

Reads a data from stdin with a given format.

snprintf
int snprintf(char* buffer, size_t size, const(char)* format, ...)

Prints a formatted string to a sized buffer.

sprintf
int sprintf(char* buffer, const(char)* format, ...)

Prints a formatted string to a buffer.

sscanf
int sscanf(const(char)* s, const(char)* format, ...)

Reads a data from a string with a given format.

tmpfile
FILE* tmpfile()

Creates a temporary file handle.

tmpnam
char* tmpnam(char* str)

Generates a temporary file name.

Structs

FILE
struct FILE

Opaque File Handle

Meta

Authors

Luna Nielsen