Changeset 102175 in vbox for trunk/src/libs/xpcom18a4/nsprpub
- Timestamp:
- Nov 21, 2023 8:29:54 AM (14 months ago)
- Location:
- trunk/src/libs/xpcom18a4/nsprpub/lib/libc
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/lib/libc/include/plstr.h
r102174 r102175 136 136 137 137 /* 138 * PL_strdup139 *140 * Returns a pointer to a malloc'd extent of memory containing a duplicate141 * of the argument string. The size of the allocated extent is one greater142 * than the length of the argument string, because of the terminator. A143 * null argument, like a zero-length argument, will result in a pointer to144 * a one-byte extent containing the null value. This routine returns null145 * upon malloc failure.146 */147 148 PR_EXTERN(char *)149 PL_strdup(const char *s);150 151 /*152 * PL_strfree153 *154 * Free memory allocated by PL_strdup155 */156 157 PR_EXTERN(void)158 PL_strfree(char *s);159 160 /*161 * PL_strndup162 *163 * Returns a pointer to a malloc'd extent of memory containing a duplicate164 * of the argument string, up to the maximum specified. If the argument165 * string has a length greater than the value of the specified maximum, the166 * return value will be a pointer to an extent of memory of length one167 * greater than the maximum specified. A null string, a zero-length string,168 * or a zero maximum will all result in a pointer to a one-byte extent169 * containing the null value. This routine returns null upon malloc failure.170 */171 172 PR_EXTERN(char *)173 PL_strndup(const char *s, PRUint32 max);174 175 /*176 138 * PL_strcmp 177 139 *
Note:
See TracChangeset
for help on using the changeset viewer.