View source code
Display the source code in core/stdc/stdio.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Module core.stdc.stdio

D header file for C99

This module contains bindings to selected types and functions from the standard C header <stdio.h>. Note that this is not automatically generated, and may omit some types/functions from the original C header.

Standards

ISO/IEC 9899:1999 (E)

Functions

NameDescription
clearerr(stream)
fclose(stream)
feof(stream)
ferror(stream)
fflush(stream)
fgetc(stream)
fgetc_unlocked(stream)
fgetpos(stream, pos)
fgets(s, n, stream)
fgetwc_unlocked(stream)
fileno()
fopen(filename, mode)
fprintf(stream, format)
fputc(c, stream)
fputc_unlocked(c, stream)
fputs(s, stream)
fputwc_unlocked(wc, stream)
fread(ptr, size, nmemb, stream)
freopen(filename, mode, stream)
fseek(stream, offset, whence)
fsetpos(stream, pos)
ftell(stream)
fwrite(ptr, size, nmemb, stream)
getchar()
gets(s)
perror(s)
printf(format)
putchar(c)
puts(s)
remove(filename)
rename(from, to)
rewind(stream)
setbuf(stream, buf)
setvbuf(stream, buf, mode, size)
snprintf(s, n, format)
sprintf(s, format)
tmpfile()
tmpnam(s)
ungetc(c, stream)
vfprintf(stream, format, arg)
vprintf(format, arg)
vsnprintf(s, n, format, arg)
vsprintf(s, format, arg)

Structs

NameDescription
_IO_FILE
fpos_t

Manifest constants

NameTypeDescription
_F_BIN
_F_BUF
_F_EOF
_F_ERR
_F_IN
_F_LBUF
_F_OUT
_F_RDWR
_F_READ
_F_TERM
_F_WRIT
_IOFBF
_IOLBF
_IONBF
BUFSIZ
EOF
FILENAME_MAX
FOPEN_MAX
L_tmpnam
SEEK_CUR Offset is relative to the current position
SEEK_END Offset is relative to the end
SEEK_SET Offset is relative to the beginning
TMP_MAX

Global variables

NameTypeDescription
stderr shared(_IO_FILE*)
stdin shared(_IO_FILE*)
stdout shared(_IO_FILE*)

Aliases

NameTypeDescription
_iobuf _IO_FILE
FILE shared(_IO_FILE)
fscanf __isoc99_fscanf
getc fgetc
putc fputc
scanf __isoc99_scanf
sscanf __isoc99_sscanf
vfscanf __isoc99_vfscanf
vscanf __isoc99_vscanf
vsscanf __isoc99_vsscanf

Authors

Sean Kelly, Alex Rønne Petersen

License

Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)