From 3dc04219382997df18cc7abb11266f4e481bebb3 Mon Sep 17 00:00:00 2001 From: Albert den Haan Date: Sun, 18 Jul 1999 18:42:29 +0000 Subject: [PATCH] Remove string.c because all of its functions were moved to crtdll.c where they belonged. --- misc/Makefile.in | 1 - misc/string.c | 67 ------------------------------------------------ 2 files changed, 68 deletions(-) delete mode 100644 misc/string.c diff --git a/misc/Makefile.in b/misc/Makefile.in index ef3686a48cf..405fb785e63 100644 --- a/misc/Makefile.in +++ b/misc/Makefile.in @@ -27,7 +27,6 @@ C_SRCS = \ sound.c \ spy.c \ stress.c \ - string.c \ system.c \ toolhelp.c \ tweak.c \ diff --git a/misc/string.c b/misc/string.c deleted file mode 100644 index 025f2d468d1..00000000000 --- a/misc/string.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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" */ - -#include "tchar.h" - -#include -#include - -char *_strlwr(char *string) { - char *cp; - - assert(string != NULL); - - for(cp = string; *cp; cp++) { - *cp = tolower(*cp); - } - return string; -} - -char *_strrev(char *string) { - char *pcFirst, *pcLast; - assert(string != NULL); - - pcFirst = pcLast = string; - - /* find the last character of the string - * (i.e. before the assumed nul-character) */ - while(*(pcLast + 1)) { - pcLast++; - } - - /* if the following ASSERT fails look for a bad (i.e. not nul-terminated) - * string */ - assert(pcFirst <= pcLast); - - /* reverse the string */ - while(pcFirst < pcLast) { - /* swap characters across the middle */ - char cTemp = *pcFirst; - *pcFirst = *pcLast; - *pcLast = cTemp; - /* move towards the middle of the string */ - pcFirst++; - pcLast--; - } - - return string; -} - -char *_strupr(char *string) { - char *cp; - - assert(string != NULL); - - for(cp = string; *cp; cp++) { - *cp = toupper(*cp); - } - return string; -} -