csrobe@ICASE.EDU (Charles S. [Chip] Roberson) (03/15/89)
In working with the ST UUPC code, I decided to develop a valid <string.h> for MWC (Don't ask me why they didn't provide one, since it is definitely needed!). Anyway, I have given the declarations as they appear in the dpANS in large comments and the parenthetical comments use the sames names for arguments (as if that really matters) as given by MWC. enjoy, -c |Chip Roberson ARPANET: csrobe@cs.wm.edu | |Dept of Comp. Sci. csrobe@icase.edu | |College of William and Mary BITNET: #csrobe@wmmvs.bitnet | |Williamsburg, VA 23185 UUCP: ...!uunet!pyrdc!gmu90x!wmcs!csrobe| PS: anyone wishing to subscribe to a mailing list dedicated to the discussion of animal-rights, please send your name and e-mail address to me at csrobe@cs.wm.edu. "It takes 40 dumb animals to make a fur coat, and just one dumb animal to wear it." -European TV commercial ---------------snip---------------snip---------------snip--------------- /* [csr] 10 Mar 1988 * string.h -- declarations for handling strings * * * This is a replacement string.h file for MWC. * It was written using _Notes_on_the_Draft_C_Standard_ * written by Thomas Plum, the MWC "Lexicon" for release 2.0, * and MWC _Release_Notes_ for Update Version 3.0.6. * * I guess I could claim a copyright, but why? Please feel free * to share this with others and correct where necessary. * * C. Roberson csrobe@cs.wm.edu */ #ifndef _STRING_HDR_ #define _STRING_HDR_ /* * void * memchr(const void *s, int c, size_t n); */ char * memchr( /* char *region, unsigned int character, unsigned int n */ ); /* * int memcmp(const void *s1, const void *s2, size_t n); */ int memcmp( /* char *region1, char *region2, unsigned int count */ ); /* * void * memcpy(const void *s1, const void *s2, size_t n); */ char * memcpy( /* char *region1, char *region2, unsigned int n */ ); /* * void * memmove(const void *s1, const void *s2, size_t n); */ /* * void * memset(const void *s, int c, size_t n); */ char * memset( /* char *buffer, int character, unsigned int n */ ); /* * char * strcat(char *s1, const char *s2); */ char * strcat( /* char *string1, char *string2 */ ); /* * char * strchr(const char *s, int c); */ char * strchr( /* char * string, int character */ ); /* * int strcmp(const char *s1, const char *s2); */ int strcmp( /* char *string1, char *string2 */ ); /* * int strcoll(const char *s1, const char *s2); */ /* * int strcpy(const char *s1, const char *s2); */ char * strcpy( /* char *string1, char *string2 */ ); /* * size_t strcspn(const char *s1, const char *s2); */ unsigned int strcspn( /* char *string1, char *string2 */ ); /* * char * strerror(int errnum); */ char * strerror( /* int error */ ); /* * size_t strlen(const char *s); */ int strlen( /* char * string */ ); char * strncat( /* char *string1, char *string2, unsigned n */ ); /* * char * strncmp(const char *s1, const char *s2, size_t n); */ int strncmp( /* char *string1, char *string2, unsigned n */ ); /* * char * strncpy(char *s1, const char *s2, size_t n); */ char * strncpy( /* char *string1, char *string2, unsigned n */ ); /* * char * strpbrk(const char *s1, const char *s2); */ char * strpbrk( /* char *string1, char *string2 */ ); /* * char * strrchr(const char *s1, int c); */ char * strrchr( /* char *string1, int character */ ); /* * size_t strspn(const char *s1, const char *s2); */ unsigned int strspn( /* char *string1, char *string2 */ ); /* * char * strstr(const char *s1, const char *s2); */ char * strstr( /* char *string1, char *string2 */ ); /* * char * strtok(char *s1, char *s2); */ char * strtok( /* char *string1, char *string2 */ ); /* * size_t strxfrm(char *to, const char *from, size_t maxsize); */ #endif