1: # include "../ingres.h" 2: 3: /* 4: ** MAKE INGRES FILE NAME 5: ** 6: ** The null-terminated string 'iname' is converted to a 7: ** file name as used by the ingres relations. The name 8: ** of the relation is padded out to be MAXNAME bytes long, 9: ** and the two-character id 'id' is appended. The whole 10: ** thing will be null-terminated and put into 'outname'. 11: ** 12: ** 'Outname' must be at least MAXNAME + 3 bytes long. 13: */ 14: 15: ingresname(iname, id, outname) 16: char *iname; 17: char *id; 18: char *outname; 19: { 20: register char *p; 21: char *pmove(); 22: 23: p = outname; 24: p = pmove(iname, p, MAXNAME, ' '); 25: bmove(id, p, 2); 26: p[2] = '\0'; 27: }