]> pd.if.org Git - pdclib/blob - platform/example/functions/_PDCLIB/stdinit.c
Added stdinit.c to hold stdin, stdout, stderr initialization. Extended svn:ignore.
[pdclib] / platform / example / functions / _PDCLIB / stdinit.c
1 /* $Id$ */
2
3 /* _PDCLIB_stdinit
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 /* This is an example initialization of stdin, stdout and stderr to the integer
10    file descriptors 0, 1, and 2, respectively. This applies for a great variety
11    of operating systems, including POSIX compliant ones.
12 */
13
14 #include <stdio.h>
15
16 #ifndef REGTEST
17
18 /* TODO: Initialize stdin, stdout, stderr */
19
20 #endif
21
22 #ifdef TEST
23 /* TODO: Necessity of this undef should probably be circumvented. */
24 #undef SEEK_SET
25 #include <_PDCLIB_test.h>
26
27 int main( void )
28 {
29     TESTCASE( NO_TESTDRIVER );
30     return TEST_RESULTS;
31 }
32
33 #endif