[asterisk-dev] stringfields.h

Tilghman Lesher tlesher at digium.com
Fri Jan 29 00:45:07 CST 2010


On Thursday 28 January 2010 22:45:54 Bhrugu Mehta wrote:
> Thanks rusell,
>
> Actually i am working on realtime oracle engine and i dont want to fixed
> size array var . i can not deside the size of var field at compile time
> because of table
> field value may vary depends on users input. like extensions.conf
> dialplan entry.
>
> so any other method available for this thing?
> any suggetion over that?

If you're just looking for a fixed-size string, you can use something like
ast_strdupa to create a local copy of a string on the stack.  If you want
a sizeable buffer for multiple purposes, use the ast_str API defined in 
strings.h.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list