uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
stdio.c
Go to the documentation of this file.
1 #include <stdio.h>
2 
3 static FILE _stdin, _stdout, _stderr;
4 FILE * stdin = &_stdin, * stdout = &_stdout, * stderr = &_stderr;
5 
6 void __sinit(struct _reent * reent) {
7  stdin->fd = 0;
8  stdout->fd = 1;
9  stderr->fd = 2;
10 }