From: solar Date: Mon, 8 May 2006 15:52:10 +0000 (+0000) Subject: Added struct status_t. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=9f485ecde29bfc3557b4876389c0da2ec8fd2330;p=fw%2Fpdclib Added struct status_t. git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@189 546481bc-9713-0410-bf18-d3337bbf4a3e --- diff --git a/includes/stdio.h b/includes/stdio.h index f8232cd..744e7c2 100644 --- a/includes/stdio.h +++ b/includes/stdio.h @@ -44,8 +44,22 @@ typedef struct _PDCLIB_file_t FILE; #define SEEK_END 2 #define SEEK_SET 4 -#define stdin NULL -#define stdout NULL +/* This is a strictly internal structure required by the printf() function + family. +*/ +struct _PDCLIB_status_t +{ + int base; /* base to which the value shall be converted */ + _PDCLIB_int_fast32_t flags; /* flags and length modifiers */ + size_t n; /* maximum number of characters to be written */ + size_t i; /* number of characters already written */ + size_t this; /* output chars in the current conversion */ + char * s; /* target buffer */ + size_t width; /* width of current field */ + size_t prec; /* precision of current field */ + FILE * stream;/* for to-stream output */ + _PDCLIB_va_list ap; /* argument stack passed to the printf function */ +}; /* Operations on files */