File:  [MW Coherent from dump] / coherent / g / usr / lib / uucp / tay104 / unix / sindir.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

/* sindir.c
   Stick a directory and file name together.  */

#include "uucp.h"

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

char *
zsysdep_in_dir (zdir, zfile)
     const char *zdir;
     const char *zfile;
{
  size_t cdir, cfile;
  char *zret;

  cdir = strlen (zdir);
  cfile = strlen (zfile);
  zret = zbufalc (cdir + cfile + 2);
  memcpy (zret, zdir, cdir);
  memcpy (zret + cdir + 1, zfile, cfile);
  zret[cdir] = '/';
  zret[cdir + cfile + 1] = '\0';
  return zret;
}

unix.superglobalmegacorp.com

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