Changeset 62 for pjproject/trunk/pjlib/include/pj/string.h
- Timestamp:
- Nov 20, 2005 7:55:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/string.h
r51 r62 175 175 176 176 /** 177 * Copy source string to destination up to the specified max length. 178 * 179 * @param dst The target string. 180 * @param src The source string. 181 * @param max Maximum characters to copy. 182 * 183 * @return the target string. 184 */ 185 PJ_IDECL(pj_str_t*) pj_strncpy(pj_str_t *dst, const pj_str_t *src, 186 pj_ssize_t max); 187 188 /** 189 * Copy source string to destination up to the specified max length, 190 * and NULL terminate the destination. If source string length is 191 * greater than or equal to max, then max-1 will be copied. 192 * 193 * @param dst The target string. 194 * @param src The source string. 195 * @param max Maximum characters to copy. 196 * 197 * @return the target string. 198 */ 199 PJ_IDECL(pj_str_t*) pj_strncpy_with_null(pj_str_t *dst, const pj_str_t *src, 200 pj_ssize_t max); 201 202 /** 177 203 * Duplicate string. 178 204 * … … 521 547 } 522 548 549 523 550 /** 524 551 * @}
Note: See TracChangeset
for help on using the changeset viewer.