Changeset 143


Ignore:
Timestamp:
Feb 23, 2002, 8:47:51 AM (23 years ago)
Author:
umoeller
Message:

PageMage fixes et al.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/stringh.h

    r127 r143  
    6767                             const char *pszSource,
    6868                             ULONG cbSource);
     69
     70    ULONG XWPENTRY strhSize(PCSZ pcsz);
    6971
    7072    ULONG XWPENTRY strhCount(const char *pszSearch, CHAR c);
  • trunk/src/helpers/apps.c

    r142 r143  
    829829
    830830/*
    831  *@@ strhSize:
    832  *      returns the size of the given string, which
    833  *      is the memory required to allocate a copy,
    834  *      including the null terminator.
    835  *
    836  *      Returns 0 if pcsz is NULL or points to a
    837  *      null character.
    838  *
    839  *@@added V0.9.18 (2002-02-13) [umoeller]
    840  */
    841 
    842 ULONG strhSize(PCSZ pcsz)
    843 {
    844     if (pcsz && *pcsz)
    845         return (strlen(pcsz) + 1);
    846 
    847     return (0);
    848 }
    849 
    850 /*
    851831 *@@ appQueryDefaultWin31Environment:
    852832 *      returns the default Win-OS/2 3.1 environment
  • trunk/src/helpers/stringh.c

    r140 r143  
    371371
    372372    return (ul);
     373}
     374
     375/*
     376 *@@ strhSize:
     377 *      returns the size of the given string, which
     378 *      is the memory required to allocate a copy,
     379 *      including the null terminator.
     380 *
     381 *      Returns 0 if pcsz is NULL or points to a
     382 *      null character.
     383 *
     384 *@@added V0.9.18 (2002-02-13) [umoeller]
     385 */
     386
     387ULONG strhSize(PCSZ pcsz)
     388{
     389    if (pcsz && *pcsz)
     390        return (strlen(pcsz) + 1);
     391
     392    return (0);
    373393}
    374394
     
    603623    if ((p1 = strchr(pszBuf, cQuote)))
    604624    {
    605         PSZ p2 = strchr(p1+1, cQuote);
    606         if (p2)
     625        PSZ p2;
     626        if (p2 = strchr(p1+1, cQuote))
    607627        {
    608628            pszReturn = strhSubstr(p1+1, p2);
Note: See TracChangeset for help on using the changeset viewer.