28 #ifndef SYSTEM_CORE_INC_POSIX_OC_STDIO_H_ 29 #define SYSTEM_CORE_INC_POSIX_OC_STDIO_H_ 31 #include <oc_errors.h> 45 #define _________________________________________MACROS_SECTION_____________________________________________________________________________ 52 #define oC_PrintErrorMessage( Message , ErrorCode ) printf(oC_VT100_RESET_ALL_ATTRIBUTES oC_VT100_BRIGHT oC_VT100_FG_WHITE Message oC_VT100_RESET_ALL_ATTRIBUTES oC_VT100_FG_RED "%s\n\r" oC_VT100_RESET_ALL_ATTRIBUTES , oC_GetErrorString(ErrorCode)) 56 #define oC_PrintWarningMessage( Message ) printf(oC_VT100_RESET_ALL_ATTRIBUTES oC_VT100_BRIGHT oC_VT100_FG_YELLOW Message oC_VT100_RESET_ALL_ATTRIBUTES "\n\r") 57 #define sprintf(outString,...) sprintf_s(outString , oC_ARRAY_SIZE(outString) , __VA_ARGS__) oC_FUNCTION_ONLY_FOR_STATIC_BUFFER(outString,sprintf,sprintf_s) 60 #define stdin ((void*)0) 61 #define stdout ((void*)1) 62 #define stderr ((void*)2) 64 #undef _________________________________________MACROS_SECTION_____________________________________________________________________________ 72 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 78 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 86 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 92 extern int vprintf(
const char * Format , va_list ArgumentList );
95 extern int printf(
const char * Format , ... );
99 extern int puts(
const char * String );
103 extern int putc(
int C, FILE *stream);
107 extern int sprintf_s(
char * outString , oC_UInt_t Size ,
const char * Format, ... );
111 extern int scanf(
const char * Format , ... );
115 extern int sscanf(
const char * String ,
const char * Format , ...);
119 extern bool oC_ArgumentOccur(
int Argc ,
char ** Argv ,
const char * Argument );
123 extern int oC_GetArgumentNumber(
int Argc ,
char ** Argv ,
const char * Argument );
127 extern bool oC_IsMemSetTo(
void * Buffer , oC_UInt_t Size , uint8_t Value );
131 extern FILE * fopen (
const char * FileName,
const char * Mode );
135 extern int fclose ( FILE * stream );
139 extern size_t fread (
void * Buffer,
size_t ElementSize,
size_t Count, FILE * File );
143 extern size_t fwrite(
const void * Buffer,
size_t ElementSize,
size_t Count, FILE * File );
147 extern int feof( FILE * File );
149 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ The file with interface for VT100 terminal standard.
The file contains definitions for the compiler, that helps to manage errors, etc. ...
Static array definitions.