Ignore:
Timestamp:
Apr 15, 2007 9:54:17 AM (13 years ago)
Author:
bennylp
Message:

Ticket #222: added pj_strtoul2()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjlib/include/pj/string.h

    r974 r1193  
    519519 
    520520/** 
     521 * Convert strings to an unsigned long-integer value. 
     522 * This function stops reading the string input either when the number 
     523 * of characters has exceeded the length of the input or it has read  
     524 * the first character it cannot recognize as part of a number, that is 
     525 * a character greater than or equal to base.  
     526 * 
     527 * @param str       The input string. 
     528 * @param endptr    Optional pointer to receive the remainder/unparsed 
     529 *                  portion of the input. 
     530 * @param base      Number base to use. 
     531 * 
     532 * @return the unsigned integer number. 
     533 */ 
     534PJ_DECL(unsigned long) pj_strtoul2(const pj_str_t *str, pj_str_t *endptr, 
     535                                   unsigned base); 
     536 
     537/** 
    521538 * Utility to convert unsigned integer to string. Note that the 
    522539 * string will be NULL terminated. 
Note: See TracChangeset for help on using the changeset viewer.