[asterisk-dev] [Code Review] Add FIELDNUM() function which returns the position number of a field in a list.
Rod Dorman
rodd at polylogics.com
Thu Jul 29 14:51:22 CDT 2010
On Thursday, July 29, 2010, 15:20:24, Tilghman Lesher wrote:
> /trunk/funcs/func_strings.c
> <https://reviewboard.asterisk.org/r/810/#comment5529>
>
> Just had one more thought. Since "0" is our "not found" value,
> should we set that value on error, as well? Blank is always a
> somewhat problematic return value for functions that normally return integers.
Why not use a -1 to signal an error?
--
rodd at polylogics.com "The avalanche has already started, it is too
Rod Dorman late for the pebbles to vote." - Ambassador Kosh
More information about the asterisk-dev
mailing list