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: stringcr.h
- Author: Copyright © 1992, 1993 Jason Williams
- Version: 1.12 (17 May 1993)
- Purpose: Provides functions identical in operation to those defined in
- ANSI <string.h>, except that these functions all work with strings
- that have non-zero terminating characters (BASIC and the WIMP
- often use a char 13 instead of a char 0 to terminate their
- strings). ANY char < 32 will terminate these strings.
- These functions are currently defined in Sublibrary Misc.c.*
- */
-
- #ifndef __dl_stringcr_h
- #define __dl_stringcr_h
-
-
- /* strlencr() == strlen()
- * NOTE **** With release 2 of DeskLib this has been changed to return
- * the length of the string EXCLUDING the terminator (i.e. it now returns
- * 1 less than it used to in Desklib 1)
- */
- extern int strlencr(char *s);
-
- /* strcmpcr() == strcmp)
- * Returns 0 if the strings match
- * Returns -1 if s1 < s2 (alphabetically less than, and/or shorter)
- * Returns +1 if s1 > s2 (alphabetcally greater than, and/or longer)
- */
- extern int strcmpcr(char *s1, char *s2);
-
-
- /* strcatcr() == strcat
- * Concatenates s2 onto the end of s1. Returns s1.
- * The returned string will be zero terminated.
- */
- extern char *strcatcr(char *s1, char *s2);
-
-
- /* strcpycr() == strcpy
- * Copies s2 into s1. Returns s1.
- * The returned string will be zero terminated.
- */
- extern char *strcpycr(char *s1, char *s2);
-
-
- #endif
-