mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 03:39:02 +00:00
09c656ca68
Obtained from: netlib.att.com
28 lines
397 B
C
28 lines
397 B
C
#include "f2c.h"
|
|
|
|
/* assign strings: a = b */
|
|
|
|
#ifdef KR_headers
|
|
VOID s_copy(a, b, la, lb) register char *a, *b; ftnlen la, lb;
|
|
#else
|
|
void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb)
|
|
#endif
|
|
{
|
|
register char *aend, *bend;
|
|
|
|
aend = a + la;
|
|
|
|
if(la <= lb)
|
|
while(a < aend)
|
|
*a++ = *b++;
|
|
|
|
else
|
|
{
|
|
bend = b + lb;
|
|
while(b < bend)
|
|
*a++ = *b++;
|
|
while(a < aend)
|
|
*a++ = ' ';
|
|
}
|
|
}
|