home *** CD-ROM | disk | FTP | other *** search
- /*--------------------------------------*/
- /* */
- /* 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;
- }