[asterisk-dev] Adding a new module to Asterisk

Joshua Colp jcolp at digium.com
Mon Oct 16 08:06:34 CDT 2017


On Mon, Oct 16, 2017, at 10:03 AM, Nir Simionovich wrote:
> ok, managed to pass that hurdle - I'm basically using a fairly old piece
> of
> code to base my module on - namely, cdr_manager.c,
> so the configuration parser in there is slightly different.
> 
> Minor question, is there a "safe" asterisk method of doing a "sprintf"?

There is no Asterisk wrapper for it, but snprintf should be used instead
generally.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list