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
. 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
Name | Description |
---|---|
clearerr(stream)
|
|
close(fd)
|
|
fclose(stream)
|
|
fdopen(fd, flags)
|
|
feof(stream)
|
|
ferror(stream)
|
|
fflush(stream)
|
|
fgetc(stream)
|
|
fgetpos(stream, pos)
|
|
fgets(s, n, stream)
|
|
fileno(stream)
|
|
fopen(filename, mode)
|
|
fprintf(stream, format)
|
|
fputc(c, stream)
|
|
fputs(s, stream)
|
|
fread(ptr, size, nmemb, stream)
|
|
freopen(filename, mode, stream)
|
|
fscanf(stream, format)
|
|
fseek(stream, offset, whence)
|
|
fsetpos(stream, pos)
|
|
ftell(stream)
|
|
fwrite(ptr, size, nmemb, stream)
|
|
getc(stream)
|
|
getchar()
|
|
gets(s)
|
|
open()
|
|
perror(s)
|
|
printf(format)
|
|
putc(c, stream)
|
|
putchar(c)
|
|
puts(s)
|
|
remove(filename)
|
|
rename(from, to)
|
|
rewind(stream)
|
|
scanf(format)
|
|
setbuf(stream, buf)
|
|
setvbuf(stream, buf, mode, size)
|
|
snprintf()
|
|
sopen()
|
|
sprintf(s, format)
|
|
sscanf(s, format)
|
|
tmpfile()
|
|
tmpnam(s)
|
|
ungetc(c, stream)
|
|
vfprintf(stream, format, arg)
|
|
vfscanf(stream, format, arg)
|
|
vprintf(format, arg)
|
|
vscanf(format, arg)
|
|
vsnprintf(s, n, format, arg)
|
|
vsprintf(s, format, arg)
|
|
vsscanf(s, format, arg)
|
|
_close(fd)
|
|
_fdopen(fd, flags)
|
|
_fdToHandle(fd)
|
|
_fgetc_nolock(fp)
|
|
_fputc_nolock(c, fp)
|
|
_get_osfhandle(fd)
|
|
_handleToFD(h, flags)
|
|
_lock_file(fp)
|
|
_open()
|
|
_open_osfhandle(osfhandle, flags)
|
|
_snprintf()
|
|
_sopen()
|
|
_unlock_file(fp)
|
|
_vsnprintf(s, n, format, arg)
|
|
_wfdopen(fd, flags)
|
|
_wopen()
|
|
_wsopen()
|
Structs
Name | Description |
---|---|
fpos_t
|
|
_iobuf
|
|
_IO_FILE
|
Manifest constants
Name | Type | Description |
---|---|---|
BUFSIZ
|
||
BUFSIZ
|
||
EOF
|
||
EOF
|
||
FHND_APPEND
|
||
FHND_BYTE
|
||
FHND_DEVICE
|
||
FHND_TEXT
|
||
FHND_WCHAR
|
||
FILENAME_MAX
|
||
FILENAME_MAX
|
||
FOPEN_MAX
|
||
FOPEN_MAX
|
||
L_tmpnam
|
||
L_tmpnam
|
Actually 260 since Visual Studio 2015. | |
L_tmpnam
|
||
O_APPEND
|
||
O_BINARY
|
||
O_CREAT
|
||
O_EXCL
|
||
O_RDONLY
|
||
O_RDWR
|
||
O_TEXT
|
||
O_TRUNC
|
||
O_WRONLY
|
||
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 | |
SH_DENYNO
|
deny none mode | |
SH_DENYRD
|
deny read mode | |
SH_DENYRW
|
deny read/write mode | |
SH_DENYWR
|
deny write mode | |
stdaux
|
||
stderr
|
||
STDERR_FILENO
|
||
stdin
|
||
STDIN_FILENO
|
||
stdout
|
||
STDOUT_FILENO
|
||
stdprn
|
||
SYS_OPEN
|
||
S_IREAD
|
read permission, owner | |
S_IWRITE
|
write permission, owner | |
TMP_MAX
|
||
TMP_MAX
|
Actually int.max since Visual Studio 2015. | |
TMP_MAX
|
||
_F_BIN
|
||
_F_BUF
|
||
_F_EOF
|
||
_F_ERR
|
||
_F_IN
|
||
_F_LBUF
|
||
_F_OUT
|
||
_F_RDWR
|
||
_F_READ
|
||
_F_TERM
|
||
_F_WRIT
|
||
_IOAPP
|
Removed since Visual Studio 2015. | |
_IOAPP
|
||
_IOAPPEND
|
Removed since Visual Studio 2015. | |
_IOEOF
|
Removed since Visual Studio 2015. | |
_IOEOF
|
||
_IOERR
|
Removed since Visual Studio 2015. | |
_IOERR
|
||
_IOFBF
|
||
_IOFBF
|
||
_IOLBF
|
||
_IOLBF
|
||
_IOMYBUF
|
Removed since Visual Studio 2015. | |
_IOMYBUF
|
||
_IONBF
|
||
_IONBF
|
||
_IOREAD
|
||
_IOREAD
|
Removed since Visual Studio 2015. | |
_IORW
|
Removed since Visual Studio 2015. | |
_IORW
|
||
_IOSTRG
|
Removed since Visual Studio 2015. | |
_IOSTRG
|
||
_IOTRAN
|
||
_IOWRT
|
Removed since Visual Studio 2015. | |
_IOWRT
|
||
_NFILE
|
||
_NFILE
|
||
_O_APPEND
|
||
_O_BINARY
|
||
_O_CREAT
|
||
_O_EXCL
|
||
_O_RDONLY
|
||
_O_RDWR
|
||
_O_TEXT
|
||
_O_TRUNC
|
||
_O_WRONLY
|
||
_P_tmpdir
|
||
_P_tmpdir
|
Removed since Visual Studio 2015. | |
_SH_DENYNO
|
deny none mode | |
_SH_DENYRD
|
deny read mode | |
_SH_DENYRW
|
deny read/write mode | |
_SH_DENYWR
|
deny write mode | |
_SYS_OPEN
|
||
_S_IREAD
|
read permission, owner | |
_S_IWRITE
|
write permission, owner | |
_wP_tmpdir
|
||
_wP_tmpdir
|
Removed since Visual Studio 2015. |
Global variables
Name | Type | Description |
---|---|---|
stderr
|
shared(_IO_FILE*)
|
|
stderr
|
FILE*
|
|
stdin
|
shared(_IO_FILE*)
|
|
stdin
|
FILE*
|
|
stdout
|
shared(_IO_FILE*)
|
|
stdout
|
FILE*
|
Aliases
Name | Type | Description |
---|---|---|
FILE
|
shared(_IO_FILE)
|
|
fpos_t
|
long
|
|
fprintf
|
__mingw_fprintf
|
|
fscanf
|
__mingw_fscanf
|
|
printf
|
__mingw_printf
|
|
scanf
|
__mingw_scanf
|
|
snprintf
|
__mingw_snprintf
|
|
sprintf
|
__mingw_sprintf
|
|
sscanf
|
__mingw_sscanf
|
|
vfprintf
|
__mingw_vfprintf
|
|
vfscanf
|
__mingw_vfscanf
|
|
vprintf
|
__mingw_vprintf
|
|
vscanf
|
__mingw_vscanf
|
|
vsnprintf
|
_vsnprintf
|
|
vsprintf
|
__mingw_vsprintf
|
|
vsscanf
|
__mingw_vsscanf
|
|
_close
|
close
|
|
_fdopen
|
fdopen
|
|
_iobuf
|
_IO_FILE
|
|
_open
|
open
|
|
_snprintf
|
__mingw_snprintf
|
|
_sopen
|
sopen
|
|
_vsnprintf
|
__mingw_vsnprintf
|
Authors
Sean Kelly, Alex Rønne Petersen
License
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
Copyright © 1999-2018 by the D Language Foundation | Page generated by ddox.