X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Ffputs.c;h=ad75cd2ffba26d7f9f3377d9595232acea10340c;hp=86abe11188058dd4566cac1c4775b0f07f9da256;hb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec diff --git a/functions/stdio/fputs.c b/functions/stdio/fputs.c index 86abe11..ad75cd2 100644 --- a/functions/stdio/fputs.c +++ b/functions/stdio/fputs.c @@ -1,8 +1,21 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * --------------------------------------------------------------------------*/ int fputs( const char * restrict s, FILE * restrict stream ) { /* TODO */ }; + +/* PDPC code - unreviewed +#ifndef __MVS__ +int fputs(const char *s, FILE *stream) +{ + size_t len; + + len = strlen(s); + fwrite(s, len, 1, stream); + return (0); +} +#endif +*/