home *** CD-ROM | disk | FTP | other *** search
- /*
- #### # # # #
- # # # # # The FreeWare C library for
- # # ## ### # # # # ### RISC OS machines
- # # # # # # # # # # # ___________________________________
- # # #### ### ## # # # #
- # # # # # # # # # # Please refer to the accompanying
- #### ### #### # # ##### # ### documentation for conditions of use
- ________________________________________________________________________
-
- File: Misc.strcatcr.c
- Author: Copyright © 1993 Jason Williams
- Version: 1.00 (16 May 1993)
- Purpose: Concatenate two CR/NUL terminated strings - note that this will
- change the terminator of the result to a NUL (0).
- */
-
-
- extern char *strcatcr(char *s1, char *s2)
- {
- register int index1 = 0, index2 = 0;
-
- while (s1[index1] > 31) index1++;
-
- while (s2[index2] > 31)
- s1[index1++] = s2[index2++];
-
- s1[index1] = 0;
- return(s1);
- }
-