ack/lang/m2/libm2/StrAss.c

14 lines
218 B
C
Raw Normal View History

1987-05-13 14:36:45 +00:00
_StringAssign(dstsiz, srcsiz, dstaddr, srcaddr)
register char *dstaddr, *srcaddr;
{
while (srcsiz > 0) {
*dstaddr++ = *srcaddr++;
srcsiz--;
dstsiz--;
}
while (dstsiz > 0) {
*dstaddr++ = 0;
dstsiz--;
}
}