home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2016
/
linuxmafia.com.tar
/
linuxmafia.com
/
pub
/
palmos
/
pippy-0.6beta-src.tar.gz
/
pippy-0.6beta-src.tar
/
pippy-0.6beta-src
/
src
/
Palm
/
libc
/
fwrite.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-12-21
|
454b
|
25 lines
/* #include <Common.h> */
/* #include <System/SysAll.h> */
/* #include <UI/UIAll.h> */
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include <ctype.h>
/* write a stream as a string of characters - ignore stream */
size_t fwrite(const void *ptr, size_t size, size_t nitems,
FILE *stream) {
char *c = (char *)ptr;
size_t nbytes = size*nitems;
int j;
for (j=0; j < nbytes; j++) {
putchar(*c);
c++;
}
return nitems;
}