|
|
1.1 root 1: /* uuto.c
2: Translate a destination for uuto. */
3:
4: #include "uucp.h"
5:
6: #include "uudefs.h"
7: #include "sysdep.h"
8: #include "system.h"
9:
10: /* Translate a uuto destination for Unix. */
11:
12: char *
13: zsysdep_uuto (zdest, zlocalname)
14: const char *zdest;
15: const char *zlocalname;
16: {
17: const char *zexclam;
18: char *zto;
19:
20: zexclam = strrchr (zdest, '!');
21: if (zexclam == NULL)
22: return NULL;
23: zto = (char *) zbufalc (zexclam - zdest
24: + sizeof "!~/receive///"
25: + strlen (zexclam)
26: + strlen (zlocalname));
27: memcpy (zto, zdest, (size_t) (zexclam - zdest));
28: sprintf (zto + (zexclam - zdest), "!~/receive/%s/%s/",
29: zexclam + 1, zlocalname);
30: return zto;
31: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.