home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume26
/
hp2pbm
/
part01
/
mem.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
C/C++ Source or Header
|
1991-12-11
|
357 b
|
20 lines
/* Adapter clone routines 1.1 91/12/03 00:34:49 */
#ifdef NOMEM
memcpy(to, from, len)
char *to, *from;
int len; {
/* Well, yeah, I could use Duff's device, but what the hey,
it's *your* fault for not having a decent O/S */
while(len--) *to++ = *from++;
}
memset(buf, c, cnt)
char *buf, c;
int cnt; {
while(cnt--) *buf++ = c;
}
#endif