Changeset 143
- Timestamp:
- Feb 23, 2002, 8:47:51 AM (23 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/stringh.h
r127 r143 67 67 const char *pszSource, 68 68 ULONG cbSource); 69 70 ULONG XWPENTRY strhSize(PCSZ pcsz); 69 71 70 72 ULONG XWPENTRY strhCount(const char *pszSearch, CHAR c); -
trunk/src/helpers/apps.c
r142 r143 829 829 830 830 /* 831 *@@ strhSize:832 * returns the size of the given string, which833 * is the memory required to allocate a copy,834 * including the null terminator.835 *836 * Returns 0 if pcsz is NULL or points to a837 * 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 /*851 831 *@@ appQueryDefaultWin31Environment: 852 832 * returns the default Win-OS/2 3.1 environment -
trunk/src/helpers/stringh.c
r140 r143 371 371 372 372 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 387 ULONG strhSize(PCSZ pcsz) 388 { 389 if (pcsz && *pcsz) 390 return (strlen(pcsz) + 1); 391 392 return (0); 373 393 } 374 394 … … 603 623 if ((p1 = strchr(pszBuf, cQuote))) 604 624 { 605 PSZ p2 = strchr(p1+1, cQuote);606 if (p2 )625 PSZ p2; 626 if (p2 = strchr(p1+1, cQuote)) 607 627 { 608 628 pszReturn = strhSubstr(p1+1, p2);
Note:
See TracChangeset
for help on using the changeset viewer.