|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 328 (0x148)
Types: TextFile
Names: »insertname.c«
└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
└─⟦this⟧ »cph85dist/wirewrap/insertname.c«
#include "wirewrap.h"
insertname(from,to,pos)
char *from, *to;
int pos;
{
char *p;
int l;
/* Pad with trailing blanks. */
l=strlen(to);
while(l<(pos-1))
{
to[l]=' ';
l++;
}
to[l]=0;
/* Append the from string to the to string. */
l=pos-1;
for(p=from; p-from < NAMELENGTH; p++)
{
to[l] = *p;
l++;
}
to[l]=0;
}