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