| * implementation of MSDEVS extensions to string.h |
| * Copyright 1999 Corel Corporation (Albert den Haan) |
| /* WARNING: The Wine declarations are in tchar.h for now since string.h is |
| * not available to be altered in most development environments. MSDEVS 5 |
| * declarse these functions in its own "string.h" */ |
| char *_strlwr(char *string) { |
| for(cp = string; *cp; cp++) { |
| char *_strrev(char *string) { |
| pcFirst = pcLast = string; |
| /* find the last character of the string |
| * (i.e. before the assumed nul-character) */ |
| /* if the following ASSERT fails look for a bad (i.e. not nul-terminated) |
| assert(pcFirst <= pcLast); |
| while(pcFirst < pcLast) { |
| /* swap characters across the middle */ |
| /* move towards the middle of the string */ |
| char *_strupr(char *string) { |
| for(cp = string; *cp; cp++) { |