3 /* fputs( const char *, FILE * )
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
13 int fputs( const char * _PDCLIB_restrict s, struct _PDCLIB_file_t * _PDCLIB_restrict stream )
15 /* FIXME: This is devoid of any error checking (file writeable? r/w
18 /* FIXME: Proper buffering handling. */
19 while ( stream->bufidx < stream->bufsize )
21 if ( ( stream->buffer[stream->bufidx++] = *(s++) ) == '\0' )
29 return fputs( s, stream );
40 #include <_PDCLIB_test.h>
44 TESTCASE( NO_TESTDRIVER );