Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
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 https://github.com/dlang/dmd/blob/master/druntime/src/core/stdc/stdio.d

Standards:
ISO/IEC 9899:1999 (E)

`BUFSIZ`
`EOF`
`FOPEN_MAX`
`FILENAME_MAX`
`TMP_MAX`
`L_tmpnam`
`SEEK_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`, int `mode`, size_t `size`);
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_list `arg`);
nothrow @nogc int `__isoc99_vfscanf`(FILE* `stream`, scope const char* `format`, va_list `arg`);
alias `vfscanf` = __isoc99_vfscanf;
nothrow @nogc int `vsprintf`(scope char* `s`, scope const char* `format`, va_list `arg`);
nothrow @nogc int `__isoc99_vsscanf`(scope const char* `s`, scope const char* `format`, va_list `arg`);
alias `vsscanf` = __isoc99_vsscanf;
nothrow @nogc int `vprintf`(scope const char* `format`, va_list `arg`);
nothrow @nogc int `__isoc99_vscanf`(scope const char* `format`, va_list `arg`);
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`(int `c`, FILE* `stream`);
nothrow @nogc char* `fgets`(char* `s`, int `n`, 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`()(int `c`);
alias `getc` = fgetc;
alias `putc` = fputc;
nothrow @nogc @trusted int `ungetc`(int `c`, FILE* `stream`);
nothrow @nogc size_t `fread`(scope void* `ptr`, size_t `size`, size_t `nmemb`, FILE* `stream`);
nothrow @nogc size_t `fwrite`(scope const void* `ptr`, size_t `size`, size_t `nmemb`, 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_long `offset`, int `whence`);
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_t `n`, scope const char* `format`, ...);
nothrow @nogc int `vsnprintf`(scope char* `s`, size_t `n`, scope const char* `format`, va_list `arg`);
nothrow @nogc int `fputc_unlocked`(int `c`, _iobuf* `stream`);
nothrow @nogc int `fgetc_unlocked`(_iobuf* `stream`);
nothrow @nogc wint_t `fputwc_unlocked`(wchar_t `wc`, _iobuf* `stream`);
nothrow @nogc wint_t `fgetwc_unlocked`(_iobuf* `stream`);
nothrow @nogc void `perror`(scope const char* `s`);

Copyright © 1999-2023 by the D Language Foundation | Page generated by Ddoc on Fri Sep 15 21:13:25 2023