home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
FPUTS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
493b
|
34 lines
/* from Dale Schumacher's dLibs */
#include <stdio.h>
#include <stddef.h>
#include <assert.h>
int fputs(data, fp)
const register char *data;
register FILE *fp;
{
register int n = 0;
assert((data != NULL));
while(*data)
{
if(fputc(*data++, fp) == EOF)
return(EOF);
++n;
}
return(n);
}
int puts(data)
const char *data;
{
register int n;
assert((data != NULL));
if(((n = fputs(data, stdout)) == EOF)
|| (fputc('\n', stdout) == EOF))
return(EOF);
return(++n);
}