home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
3
/
3937
/
mem.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-30
|
335 b
|
20 lines
/* Adapter clone routines */
#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