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
a local clone.
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.
License:
Distributed under the
Boost Software License 1.0.
(See accompanying file LICENSE)
Authors:
Sean Kelly,
Alex Rønne Petersen
Source core/stdc/stdio.d
Standards:
ISO/IEC 9899:1999 (E)
BUFSIZEOFFOPEN_MAXFILENAME_MAXTMP_MAXL_tmpnamSEEK_SET- Offset is relative to the beginning
SEEK_CUR- Offset is relative to the current position
SEEK_END- Offset is relative to the end
- struct
fpos_t; - struct
_IO_FILE; - alias
_iobuf= _IO_FILE; - alias
FILE= _IO_FILE; _F_RDWR_F_READ_F_WRIT_F_BUF_F_LBUF_F_ERR_F_EOF_F_BIN_F_IN_F_OUT_F_TERM_IOFBF_IOLBF_IONBF- shared FILE*
stdin; - shared FILE*
stdout; - shared FILE*
stderr; - nothrow @nogc int
remove(scope const char*filename); - nothrow @nogc int
rename(scope const char*from, scope const char*to); - nothrow @nogc @trusted FILE*
tmpfile(); - nothrow @nogc char*
tmpnam(char*s); - nothrow @nogc int
fclose(FILE*stream); - nothrow @nogc @trusted int
fflush(FILE*stream); - nothrow @nogc FILE*
fopen(scope const char*filename, scope const char*mode); - nothrow @nogc FILE*
freopen(scope const char*filename, scope const char*mode, FILE*stream); - nothrow @nogc void
setbuf(FILE*stream, char*buf); - nothrow @nogc int
setvbuf(FILE*stream, char*buf, intmode, size_tsize); - nothrow @nogc int
fprintf(FILE*stream, scope const char*format, ...); - nothrow @nogc int
__isoc99_fscanf(FILE*stream, scope const char*format, ...); - alias
fscanf= __isoc99_fscanf; - nothrow @nogc int
sprintf(scope char*s, scope const char*format, ...); - nothrow @nogc int
__isoc99_sscanf(scope const char*s, scope const char*format, ...); - alias
sscanf= __isoc99_sscanf; - nothrow @nogc int
vfprintf(FILE*stream, scope const char*format, va_listarg); - nothrow @nogc int
__isoc99_vfscanf(FILE*stream, scope const char*format, va_listarg); - alias
vfscanf= __isoc99_vfscanf; - nothrow @nogc int
vsprintf(scope char*s, scope const char*format, va_listarg); - nothrow @nogc int
__isoc99_vsscanf(scope const char*s, scope const char*format, va_listarg); - alias
vsscanf= __isoc99_vsscanf; - nothrow @nogc int
vprintf(scope const char*format, va_listarg); - nothrow @nogc int
__isoc99_vscanf(scope const char*format, va_listarg); - alias
vscanf= __isoc99_vscanf; - nothrow @nogc int
printf(scope const char*format, ...); - nothrow @nogc int
__isoc99_scanf(scope const char*format, ...); - alias
scanf= __isoc99_scanf; - nothrow @nogc @trusted int
fgetc(FILE*stream); - nothrow @nogc @trusted int
fputc(intc, FILE*stream); - nothrow @nogc char*
fgets(char*s, intn, FILE*stream); - nothrow @nogc int
fputs(scope const char*s, FILE*stream); - nothrow @nogc char*
gets(char*s); - nothrow @nogc int
puts(scope const char*s); - int
getchar()(); - int
putchar()(intc); - alias
getc= fgetc; - alias
putc= fputc; - nothrow @nogc @trusted int
ungetc(intc, FILE*stream); - nothrow @nogc size_t
fread(scope void*ptr, size_tsize, size_tnmemb, FILE*stream); - nothrow @nogc size_t
fwrite(scope const void*ptr, size_tsize, size_tnmemb, FILE*stream); - nothrow @nogc @trusted int
fgetpos(FILE*stream, scope fpos_t*pos); - nothrow @nogc @trusted int
fsetpos(FILE*stream, scope const fpos_t*pos); - nothrow @nogc @trusted int
fseek(FILE*stream, c_longoffset, intwhence); - nothrow @nogc @trusted c_long
ftell(FILE*stream); - nothrow @nogc @trusted void
rewind(FILE*stream); - pure nothrow @nogc @trusted void
clearerr(FILE*stream); - pure nothrow @nogc @trusted int
feof(FILE*stream); - pure nothrow @nogc @trusted int
ferror(FILE*stream); - nothrow @nogc @trusted int
fileno(FILE*); - nothrow @nogc int
snprintf(scope char*s, size_tn, scope const char*format, ...); - nothrow @nogc int
vsnprintf(scope char*s, size_tn, scope const char*format, va_listarg); - nothrow @nogc int
fputc_unlocked(intc, _iobuf*stream); - nothrow @nogc int
fgetc_unlocked(_iobuf*stream); - nothrow @nogc wint_t
fputwc_unlocked(wchar_twc, _iobuf*stream); - nothrow @nogc wint_t
fgetwc_unlocked(_iobuf*stream); - nothrow @nogc void
perror(scope const char*s);
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:36 2025