Changeset 81 for trunk/src/helpers/stringh.c
- Timestamp:
- Jun 23, 2001, 11:12:49 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/stringh.c
r73 r81 1642 1642 * Note: On the first call, *ppszRoot and *pcbRoot 1643 1643 * _must_ be both NULL, or this crashes. 1644 * 1645 *@@changed V0.9.13 (2001-06-21) [umoeller]: added cbNew 1644 1646 */ 1645 1647 1646 1648 VOID strhArrayAppend(PSZ *ppszRoot, // in: root of array 1647 1649 const char *pcszNew, // in: string to append 1650 ULONG cbNew, // in: size of that string or 0 to run strlen() here 1648 1651 PULONG pcbRoot) // in/out: size of array 1649 1652 { 1650 ULONG cbNew = strlen(pcszNew); 1651 PSZ pszTemp = (PSZ)malloc(*pcbRoot 1652 + cbNew 1653 + 1); // two null bytes 1653 PSZ pszTemp; 1654 1655 if (!cbNew) // V0.9.13 (2001-06-21) [umoeller] 1656 cbNew = strlen(pcszNew); 1657 1658 pszTemp = (PSZ)malloc(*pcbRoot 1659 + cbNew 1660 + 1); // two null bytes 1654 1661 if (*ppszRoot) 1655 1662 {
Note:
See TracChangeset
for help on using the changeset viewer.