Ignore:
Timestamp:
Nov 20, 2005 7:55:42 PM (18 years ago)
Author:
bennylp
Message:

Added hex character conversion utility in ctype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/string.h

    r51 r62  
    175175 
    176176/** 
     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 */ 
     185PJ_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 */ 
     199PJ_IDECL(pj_str_t*) pj_strncpy_with_null(pj_str_t *dst, const pj_str_t *src, 
     200                                         pj_ssize_t max); 
     201 
     202/** 
    177203 * Duplicate string. 
    178204 * 
     
    521547} 
    522548 
     549 
    523550/** 
    524551 * @} 
Note: See TracChangeset for help on using the changeset viewer.