This commit is contained in:
Oliver Lehmann 1989-04-03 16:46:43 +00:00
parent aeb5fd9cdb
commit f2bb944967
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# include "gen.h"
# include "../h/dbs.h"
/*
** MAKE DBS FILE NAME
**
** The null-terminated string 'iname' is converted to a
** file name as used by the dbs relations. The name
** of the relation is padded out to be MAXNAME bytes long,
** and the two-character id 'id' is appended. The whole
** thing will be null-terminated and put into 'outname'.
**
** 'Outname' must be at least MAXNAME + 3 bytes long.
*/
AAdbname(iname, id, p)
register char *iname;
register char *id;
register char *p;
{
extern char *AApmove();
# ifdef VENIX
p = AApmove(iname, p, MAXNAME, '#');
# else
p = AApmove(iname, p, MAXNAME, ' ');
# endif
AAbmove(id, p, 2);
p[2] = '\0';
}