freebsd-skq/lib/libF77/s_cat.c
L Jonas Olsson 09c656ca68 Library for f2c (part 2 of 2)
Obtained from: netlib.att.com
1994-10-26 18:17:41 +00:00

26 lines
408 B
C

#include "f2c.h"
#ifdef KR_headers
VOID s_cat(lp, rpp, rnp, np, ll) char *lp, *rpp[]; ftnlen rnp[], *np, ll;
#else
VOID s_cat(char *lp, char *rpp[], ftnlen rnp[], ftnlen *np, ftnlen ll)
#endif
{
ftnlen i, n, nc;
char *f__rp;
n = *np;
for(i = 0 ; i < n ; ++i)
{
nc = ll;
if(rnp[i] < nc)
nc = rnp[i];
ll -= nc;
f__rp = rpp[i];
while(--nc >= 0)
*lp++ = *f__rp++;
}
while(--ll >= 0)
*lp++ = ' ';
}