2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
8 #include "../adrparse.h"
14 register struct mailname
*mp
;
17 if(!(mp
= getm(argv
[1],"RAND-UNIX"))) {
18 printf("adrparse returned 0\n");
21 printf("%s\n", mp
->m_text
);
22 printf("mbox: %s\n", mp
->m_mbox
);
26 if(*cp
== '@') putchar('@');
27 else while(*cp
!= ' ') putchar(*cp
++);
30 printf("host: %s ", mp
->m_host
);
35 for(cp
= mp
->m_hs
; cp
<= mp
->m_he
; )
40 printf("hnum: %d\n", mp
->m_hnum
);
41 printf("Proper: %s\n", adrformat(mp
,"RAND-UNIX"));