/* ** Patched for MS-DOS compatibility by Stephen Trier March, April and ** May, 1990. This file is in the public domain. */ #ifndef lint static char *sccsid="@(#)map.c 2.5 (smail) 9/15/87"; #endif # include # include # include "defs.h" extern int queuecost; #ifdef MSDOS extern enum erouting routing, routelevel; /* Use to check on rerouting */ #endif /* ** ** map(): map addresses into sets. ** ** Calls resolve() for each address of argv. The result is hostv and ** userv arrays (pointing into buffers userz and hostz), and formv array. ** */ map(argc, argv, hostv, userv, formv, costv) int argc; /* address count */ char **argv; /* address vector */ char *hostv[]; /* remote host vector */ char *userv[]; /* user name vector */ enum eform formv[]; /* address format vector */ int costv[]; /* cost vector */ { int i, cost; enum eform resolve(); char *c; static char userbuf[BIGBUF], *userz; static char hostbuf[BIGBUF], *hostz; userz = userbuf; hostz = hostbuf; for( i=0; i