From 458b2a58d18f7e548cfed653dc6f18c318790232 Mon Sep 17 00:00:00 2001 From: Riza Sulistyo Date: Thu, 14 Mar 2013 07:18:13 +0000 Subject: Re #1643: add initial support for CLI git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4440 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/string.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pjlib/include') diff --git a/pjlib/include/pj/string.h b/pjlib/include/pj/string.h index 6df22f12..525b4c05 100644 --- a/pjlib/include/pj/string.h +++ b/pjlib/include/pj/string.h @@ -535,6 +535,17 @@ PJ_IDECL(pj_str_t*) pj_strtrim( pj_str_t *str ); */ PJ_DECL(char*) pj_create_random_string(char *str, pj_size_t length); +/** + * Convert string to signed integer. The conversion will stop as + * soon as non-digit character is found or all the characters have + * been processed. + * + * @param str the string. + * + * @return the integer. + */ +PJ_DECL(long) pj_strtol(const pj_str_t *str); + /** * Convert string to unsigned integer. The conversion will stop as * soon as non-digit character is found or all the characters have -- cgit v1.2.3