2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
10 #include "../adrparse.h"
13 extern char *sprintf();
16 adrformat(mp
,hostname
)
17 register struct mailname
*mp
;
18 register char *hostname
;
21 register char *tp
, *cp
, *sp
;
23 for(tp
= buf
, cp
= mp
->m_text
;*cp
;cp
++ ) {
35 if((cp
== mp
->m_hs
) && (*mp
->m_at
!= '!')){
36 if(sp
= stdhost(mp
->m_hnum
)) {
38 *tp
++ = islower(*sp
) ?
39 toupper(*sp
++) : *sp
++;
43 fprintf(stderr
, "adrformat: bad host!?\n");
50 VOID
sprintf(tp
, " at %s", !mp
->m_at
? mp
->m_host
: hostname
);
51 /* This probably only needs "hostname" unconditionally */
62 register struct hosts
*hp
;
64 for(hp
= hosts
.nh_next
; hp
; hp
= hp
->nh_next
)