Changeset 1545 for trunk/dll/pathutil.c


Ignore:
Timestamp:
Oct 24, 2010, 12:00:47 AM (15 years ago)
Author:
Gregg Young
Message:

Added ForwardslashToBackslash function to streamline code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/pathutil.c

    r1480 r1545  
    1717  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code
    1818  12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory
     19  23 Oct 10 GKY Add ForwardslashToBackslash function to streamline code
    1920
    2021***********************************************************************/
     
    4243
    4344static PSZ pszSrcFile = __FILE__;
     45
     46PSZ ForwardslashToBackslash(PSZ pszPathName)
     47{
     48  CHAR *p;
     49
     50  p = pszPathName;
     51  while (*p) {
     52    if (*p == '/')
     53      *p = '\\';
     54    p++;
     55  }
     56  return pszPathName;
     57}
    4458
    4559PSZ AddBackslashToPath(PSZ pszPathName)
Note: See TracChangeset for help on using the changeset viewer.