source:
vendor/gawk/3.1.5/missing_d/memcpy.c@
3076
| Last change on this file since 3076 was 3076, checked in by , 19 years ago | |
|---|---|
| File size: 261 bytes | |
| Line | |
|---|---|
| 1 | /* |
| 2 | * memcpy --- copy strings. |
| 3 | * |
| 4 | * We supply this routine for those systems that aren't standard yet. |
| 5 | */ |
| 6 | |
| 7 | char * |
| 8 | memcpy (dest, src, l) |
| 9 | register char *dest, *src; |
| 10 | register int l; |
| 11 | { |
| 12 | register char *ret = dest; |
| 13 | |
| 14 | while (l--) |
| 15 | *dest++ = *src++; |
| 16 | |
| 17 | return ret; |
| 18 | } |
Note:
See TracBrowser
for help on using the repository browser.
