Implement putchar / getchar

Issue #61 new
Patryk Kubiak created an issue

The functions putchar and getchar should be implemented for POSIX compatibility: http://www.cplusplus.com/reference/cstdio/getchar/ http://www.cplusplus.com/reference/cstdio/putchar/

(No - it is not the same as putc/getc ;) )

Functions to use:

#!c

extern oC_ErrorCode_t       oC_VirtualFileSystem_getc          ( char * outCharacter , oC_File_t File );
extern oC_ErrorCode_t       oC_VirtualFileSystem_putc          ( char Character , oC_File_t File );
extern oC_ErrorCode_t   oC_KPrint_WriteToStdOut     ( oC_IoFlags_t IoFlags , const char *    Buffer , uint32_t Size );
extern oC_ErrorCode_t   oC_KPrint_ReadFromStdIn     ( oC_IoFlags_t IoFlags ,       char * outBuffer , uint32_t Size );

Comments (1)

  1. Log in to comment