[asterisk-dev] [asterisk-commits] mmichelson: branch 1.4 r89205 - /branches/1.4/apps/app_mixmonitor.c

Kevin P. Fleming kpfleming at digium.com
Tue Nov 13 09:46:11 CST 2007

BJ Weschke wrote:

>  If I run ast_app_separate_args() on arg1|arg2|arg3|arg4 represented as 
> "foo|||bar" I'm seeing arg2 and arg3 come in null.

That is correct! They are supposed to be NULL, not contain random data.
That allows you to just check 'if (args.arg2)' and know whether you got
an argument or not.

Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)

More information about the asterisk-dev mailing list