]> pd.if.org Git - pdclib.old/blob - platform/example/functions/_PDCLIB/fillbuffer.c
Enable per-thread locale support to be compiled out
[pdclib.old] / platform / example / functions / _PDCLIB / fillbuffer.c
1 /* $Id$ */
2
3 /* _PDCLIB_fillbuffer( struct _PDCLIB_file_t * stream )
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 a stub version of _PDCLIB_fillbuffer
10 */
11
12 #include <stdio.h>
13
14 #ifndef REGTEST
15 #include <_PDCLIB_glue.h>
16 #include <errno.h>
17
18 int _PDCLIB_fillbuffer( struct _PDCLIB_file_t * stream )
19 {
20     errno = ENOTSUP; 
21     stream->status |= _PDCLIB_EOFFLAG;
22     return EOF;
23 }
24
25 #endif
26
27 #ifdef TEST
28 #include <_PDCLIB_test.h>
29
30 int main( void )
31 {
32     /* Testing covered by ftell.c */
33     return TEST_RESULTS;
34 }
35
36 #endif
37