stdio.h File Reference

_FSTDIO

__need_size_t

Typedef fpos_t

typedef _fpos_t fpos_t

Typedef FILE

typedef struct __sFILEFILE

__SLBF

__SNBF

__SRD

__SWR

__SRW

__SEOF

__SERR

__SMBF

__SAPP

__SSTR

__SOPT

__SNPT

__SOFF

__SMOD

_IOFBF

The following three definitions are for ANSI C, which took them from System V, which stupidly took internal interface macros and made them official arguments to setvbuf(), without renaming them. Hence, these ugly _IOxxx names are *supposed* to appear in user code.

Although these happen to match their counterparts above, the implementation does not rely on that (so these could be renumbered).

_IOLBF

_IONBF

NULL

BUFSIZ

EOF

FOPEN_MAX

FILENAME_MAX

P_tmpdir

WIDEP_tmpdir

L_tmpnam

SEEK_SET

SEEK_CUR

SEEK_END

TMP_MAX

__stdin ( void )

IMPORT_C FILE *__stdin(void)

Function interface to the "constants" stdin, stdout and stderr. These functions guarantee to return a fixed value, so that it will be possible to use expressions such as if (fp != stdout) fclose(fp);

with complete confidence. Unfortunately it will rule out initialising global variables with stdin/stdout/stderr, as in the common idiom:

static FILE *log = stderr;

This isn't currently possible with EPOC32.

__stdout ( void )

IMPORT_C FILE *__stdout(void)

__stderr ( void )

IMPORT_C FILE *__stderr(void)

stdin

stdout

stderr

tmpfile ( void )

IMPORT_C FILE *tmpfile(void)

Functions defined in ANSI C standard.

tmpnam ( char * )

IMPORT_C char *tmpnam(char *)

wtmpnam ( wchar_t * )

IMPORT_C wchar_t *wtmpnam(wchar_t *)

fclose ( FILE * )

IMPORT_C intfclose(FILE *)

fflush ( FILE * )

IMPORT_C intfflush(FILE *)

freopen ( const char *, const char *, FILE * )

IMPORT_C FILE *freopen(const char *,
const char *,
FILE *
)

wfreopen ( const wchar_t *, const wchar_t *, FILE * )

IMPORT_C FILE *wfreopen(const wchar_t *,
const wchar_t *,
FILE *
)

setbuf ( FILE *, char * )

IMPORT_C voidsetbuf(FILE *,
char *
)

setvbuf ( FILE *, char *, int, size_t )

IMPORT_C intsetvbuf(FILE *,
char *,
int,
size_t
)

fprintf ( FILE *, const char *, ... )

IMPORT_C intfprintf(FILE *,
const char *,
...
)

fscanf ( FILE *, const char *, ... )

IMPORT_C intfscanf(FILE *,
const char *,
...
)

printf ( const char *, ... )

IMPORT_C intprintf(const char *,
...
)

scanf ( const char *, ... )

IMPORT_C intscanf(const char *,
...
)

sscanf ( const char *, const char *, ... )

IMPORT_C intsscanf(const char *,
const char *,
...
)

vfprintf ( FILE *, const char *, __e32_va_list )

IMPORT_C intvfprintf(FILE *,
const char *,
__e32_va_list
)

vprintf ( const char *, __e32_va_list )

IMPORT_C intvprintf(const char *,
__e32_va_list
)

vsprintf ( char *, const char *, __e32_va_list )

IMPORT_C intvsprintf(char *,
const char *,
__e32_va_list
)

fgetc ( FILE * )

IMPORT_C intfgetc(FILE *)

fgets ( char *, int, FILE * )

IMPORT_C char *fgets(char *,
int,
FILE *
)

fputc ( int, FILE * )

IMPORT_C intfputc(int,
FILE *
)

fputs ( const char *, FILE * )

IMPORT_C intfputs(const char *,
FILE *
)

getc ( FILE * )

IMPORT_C intgetc(FILE *)

getchar ( void )

IMPORT_C intgetchar(void)

gets ( char * )

IMPORT_C char *gets(char *)

putc ( int, FILE * )

IMPORT_C intputc(int,
FILE *
)

putchar ( int )

IMPORT_C intputchar(int)

puts ( const char * )

IMPORT_C intputs(const char *)

ungetc ( int, FILE * )

IMPORT_C intungetc(int,
FILE *
)

fread ( void *, size_t, size_t, FILE * )

IMPORT_C size_tfread(void *,
size_t_size,
size_t_n,
FILE *
)

fwrite ( const void *, size_t, size_t, FILE * )

IMPORT_C size_tfwrite(const void *,
size_t_size,
size_t_n,
FILE *
)

fgetpos ( FILE *, fpos_t * )

IMPORT_C intfgetpos(FILE *,
fpos_t *
)

fseek ( FILE *, long, int )

IMPORT_C intfseek(FILE *,
long,
int
)

fsetpos ( FILE *, const fpos_t * )

IMPORT_C intfsetpos(FILE *,
const fpos_t *
)

ftell ( FILE * )

IMPORT_C longftell(FILE *)

rewind ( FILE * )

IMPORT_C voidrewind(FILE *)

clearerr ( FILE * )

IMPORT_C voidclearerr(FILE *)

feof ( FILE * )

IMPORT_C intfeof(FILE *)

ferror ( FILE * )

IMPORT_C intferror(FILE *)

perror ( const char * )

IMPORT_C voidperror(const char *)

fopen ( const char *, const char * )

IMPORT_C FILE *fopen(const char *_name,
const char *_type
)

wfopen ( const wchar_t *, const wchar_t * )

IMPORT_C FILE *wfopen(const wchar_t *_name,
const wchar_t *_type
)

sprintf ( char *, const char *, ... )

IMPORT_C intsprintf(char *,
const char *,
...
)

fileno ( FILE * )

IMPORT_C intfileno(FILE *)

Routines in POSIX 1003.1.

fdopen ( int, const char * )

IMPORT_C FILE *fdopen(int,
const char *
)

wfdopen ( int, const wchar_t * )

IMPORT_C FILE *wfdopen(int,
const wchar_t *
)

_cleanup ( void )

IMPORT_C void_cleanup(void)

The name _cleanup is rather well-known...

popen3 ( const char *, const char *, char **, int )

IMPORT_C intpopen3(const char *cmd,
const char *mode,
char **envp,
intfids
)

EPOC32 support for multiple processes

wpopen3 ( const wchar_t *, const wchar_t *, wchar_t **, int )

IMPORT_C intwpopen3(const wchar_t *cmd,
const wchar_t *mode,
wchar_t **envp,
intfids
)