12345678910111213141516171819202122232425262728 |
- /* $Id$ */
- /*
- * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
- * See the copyright notice in the ACK home directory, in the file "Copyright".
- */
- #include "obj.h"
- void
- wr_ranlib(fd, ran, cnt1)
- struct ranlib *ran;
- long cnt1;
- {
- #if BYTE_ORDER == 0x0123
- if (sizeof (struct ranlib) != SZ_RAN)
- #endif
- {
- register long cnt = cnt1;
- register struct ranlib *r = ran;
- register char *c = (char *) r;
- while (cnt--) {
- put4(r->ran_off,c); c += 4;
- put4(r->ran_pos,c); c += 4;
- r++;
- }
- }
- wr_bytes(fd, (char *) ran, cnt1 * SZ_RAN);
- }
|