| Revision: | 1.6 |
| Committed: | Fri Nov 5 03:31:36 2004 UTC (21 years, 1 month ago) by greg |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | HEAD |
| Changes since 1.5: | +1 -1 lines |
| State: | FILE REMOVED |
| Log Message: | Removed unused programs and files from distribution (sources to CVS attic) |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | greg | 1.1 | #ifndef lint |
| 2 | greg | 1.6 | static const char RCSid[] = "$Id: bcopy.c,v 1.5 2003/11/14 17:22:06 schorsch Exp $"; |
| 3 | greg | 1.1 | #endif |
| 4 | /* | ||
| 5 | * bcopy.c - substitutes for library routines. | ||
| 6 | greg | 1.2 | */ |
| 7 | |||
| 8 | greg | 1.3 | #include "copyright.h" |
| 9 | greg | 1.1 | |
| 10 | |||
| 11 | schorsch | 1.5 | bcopy( |
| 12 | register char *src, | ||
| 13 | register char *dest, | ||
| 14 | register int nbytes | ||
| 15 | ) | ||
| 16 | greg | 1.1 | { |
| 17 | while (nbytes-- > 0) | ||
| 18 | *dest++ = *src++; | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | schorsch | 1.5 | bzero( |
| 23 | register char *b, | ||
| 24 | register int nbytes | ||
| 25 | ) | ||
| 26 | greg | 1.1 | { |
| 27 | while (nbytes-- > 0) | ||
| 28 | *b++ = 0; | ||
| 29 | } | ||
| 30 | |||
| 31 | |||
| 32 | int | ||
| 33 | schorsch | 1.5 | bcmp( |
| 34 | register unsigned char *b1, | ||
| 35 | register unsigned char *b2, | ||
| 36 | register int nbytes | ||
| 37 | ) | ||
| 38 | greg | 1.1 | { |
| 39 | while (nbytes-- > 0) | ||
| 40 | if (*b1++ - *b2++) | ||
| 41 | return(*--b1 - *--b2); | ||
| 42 | return(0); | ||
| 43 | } |