[asterisk-dev] common functions for int2string conversion

Luigi Rizzo rizzo at icir.org
Mon Jul 16 10:38:22 CDT 2007


On Mon, Jul 16, 2007 at 05:27:13PM +0200, Klaus Darilion wrote:
> 
> 
> Russell Bryant wrote:
> > Klaus Darilion wrote:
> >> Are somewhere common functions for string/integer conversion defined?
> > 
> > There are a lot of functions in the standard C library for doing these
> > types of things.  You may need to be more specific to get the answer you
> > are looking for.
> 
> For example atoi(): it does not catch errors. I know there is strtol() 
> too. I just wanted to know if maybe there are asterisk internal 
> functions for such conversions like there is ast_copy_string for string 
> handling.

ok that would be exactly the purpose of my proposed parsing function.

cheers
luigi



More information about the asterisk-dev mailing list