/* pe2uvec.c - write a PE to a udvec */
static char *rcsid
= "$Header: /f/osi/psap/RCS/pe2uvec.c,v 7.1 91/02/22 09:36:08 mrose Interim $";
* $Header: /f/osi/psap/RCS/pe2uvec.c,v 7.1 91/02/22 09:36:08 mrose Interim $
* Revision 7.1 91/02/22 09:36:08 mrose
* Revision 7.0 89/11/23 22:12:59 mrose
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
if ((ps
= ps_alloc (uvec_open
)) == NULLPS
)
cc
= ps_get_abs (pe
) - ps_get_plen (pe
);
if (uvec_setup (ps
, cc
) == NOTOK
|| pe2ps_aux (ps
, pe
, 0) == NOTOK
) {
len
= ps
-> ps_byteno
- len
;
if (psap_log
-> ll_events
& LLOG_PDUS
) {
register struct udvec
*vv
;
for (vv
= *uv
; vv
-> uv_base
; vv
++, i
++)
LLOG (psap_log
, LLOG_PDUS
,
("PE written in %d elements, %d inline (%d octet%s)",
i
, j
, k
, k
!= 1 ? "s" : ""));
pe2text (psap_log
, pe
, 0, len
);