Changeset 550 for trunk/src/kernel32/nameid.cpp
- Timestamp:
- Aug 18, 1999, 7:18:01 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/nameid.cpp
r120 r550 1 /* $Id: nameid.cpp,v 1. 5 1999-06-19 10:54:42sandervl Exp $ */1 /* $Id: nameid.cpp,v 1.6 1999-08-18 17:18:00 sandervl Exp $ */ 2 2 3 /*4 *5 * Project Odin Software License can be found in LICENSE.TXT6 *7 */8 3 /* 9 4 * Resource id to name id conversion procedures 10 5 * 11 6 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl) 7 * 8 * 9 * Project Odin Software License can be found in LICENSE.TXT 12 10 * 13 11 */ … … 27 25 #include <winexe.h> 28 26 #include "os2util.h" 29 30 void UpCase(char *mixedcase);31 27 32 28 /******************************************************************************/ … … 57 53 //****************************************************************************** 58 54 //****************************************************************************** 59 void SYSTEM EXPORT UpCase(char *mixedcase)55 char *StripPath(char *path) 60 56 { 61 int i; 62 63 for(i=0;i<strlen(mixedcase);i++) { 64 if(mixedcase[i] >= 'a' && mixedcase[i] <= 'z') { 65 mixedcase[i] += 'A' - 'a'; 66 } 67 } 57 /* @@@PH what does this function do ? Strip the path from a FQFN name ? */ 58 char *pszFilename; 59 60 pszFilename = strrchr(path, '\\'); /* find rightmost slash */ 61 if (pszFilename != NULL) 62 return (pszFilename++); /* return pointer to next character */ 63 64 pszFilename = strrchr(path, '/'); /* find rightmost slash */ 65 if (pszFilename != NULL) 66 return (pszFilename++); /* return pointer to next character */ 67 68 return (path); /* default return value */ 68 69 } 69 / ******************************************************************************/70 / ******************************************************************************/70 //****************************************************************************** 71 //****************************************************************************** 71 72 ULONG GetOS2ModuleHandle(ULONG hmod) 72 73 {
Note:
See TracChangeset
for help on using the changeset viewer.