mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 23:57:54 +01:00
09c656ca68
Obtained from: netlib.att.com
26 lines
408 B
C
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++ = ' ';
|
|
}
|