3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
9 wr_ranlib(fd
, ran
, cnt
)
10 register struct ranlib
*ran
;
13 #if ! (BYTES_REVERSED || WORDS_REVERSED)
14 if (sizeof (struct ranlib
) != SZ_RAN
)
17 char buf
[100 * SZ_RAN
];
20 register int i
= (cnt
> 100) ? 100 : cnt
;
21 register char *c
= buf
;
26 put4(ran
->ran_off
,c
); c
+= 4;
27 put4(ran
->ran_pos
,c
); c
+= 4;
33 #if ! (BYTES_REVERSED || WORDS_REVERSED)
34 else wr_bytes(fd
, (char *) ran
, cnt
* SZ_RAN
);