home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
stradd.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
512b
|
21 lines
/*--------------------------------------*/
/* */
/* STRADD(X,X,X) */
/* */
/* Adds the string given in the second */
/* argument to the string given in the */
/* first argument and puts the result */
/* in the last argument. */
/* */
/*--------------------------------------*/
void stradd(a,b,c)
char *a,*b,*c;
{
int ctr,j;
ctr=strlen(a);
for (j=0;j<ctr;j++)
c[j]=a[j];
for (j=0;j<strlen(b);j++)
c[ctr++]=b[j];
c[ctr]=0;
}