2 * implementation of MSDEVS extensions to string.h
4 * Copyright 1999 Corel Corporation (Albert den Haan)
7 /* WARNING: The Wine declarations are in tchar.h for now since string.h is
8 * not available to be altered in most development environments. MSDEVS 5
9 * declarse these functions in its own "string.h" */
16 char *_strlwr(char *string) {
19 assert(string != NULL);
21 for(cp = string; *cp; cp++) {
27 char *_strrev(char *string) {
28 char *pcFirst, *pcLast;
29 assert(string != NULL);
31 pcFirst = pcLast = string;
33 /* find the last character of the string
34 * (i.e. before the assumed nul-character) */
35 while(*(pcLast + 1)) {
39 /* if the following ASSERT fails look for a bad (i.e. not nul-terminated)
41 assert(pcFirst <= pcLast);
43 /* reverse the string */
44 while(pcFirst < pcLast) {
45 /* swap characters across the middle */
46 char cTemp = *pcFirst;
49 /* move towards the middle of the string */
57 char *_strupr(char *string) {
60 assert(string != NULL);
62 for(cp = string; *cp; cp++) {