File:  [MW Coherent from dump] / coherent / g / usr / lib / uucp / tay104 / unix / uuto.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* uuto.c
   Translate a destination for uuto.  */

#include "uucp.h"

#include "uudefs.h"
#include "sysdep.h"
#include "system.h"

/* Translate a uuto destination for Unix.  */

char *
zsysdep_uuto (zdest, zlocalname)
     const char *zdest;
     const char *zlocalname;
{
  const char *zexclam;
  char *zto;

  zexclam = strrchr (zdest, '!');
  if (zexclam == NULL)
    return NULL;
  zto = (char *) zbufalc (zexclam - zdest
			  + sizeof "!~/receive///"
			  + strlen (zexclam)
			  + strlen (zlocalname));
  memcpy (zto, zdest, (size_t) (zexclam - zdest));
  sprintf (zto + (zexclam - zdest), "!~/receive/%s/%s/",
	   zexclam + 1, zlocalname);
  return zto;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.