[Asterisk-Dev] asterisk functions return codes

Kevin P. Fleming kpfleming at digium.com
Fri Aug 5 08:10:50 MST 2005


Timur V. Elzhov wrote:

> Really? I tried asterisk_fileexists(char *fn, ...), and found it returns 2
> when file does exist, and -1 when it does not. So what way would you suggest
> to write the above condition without an operator? :-)

If that's the way it is documented to work, then it must be correct :-) 
I certainly don't remember the syntax and semantics of every API call...



More information about the asterisk-dev mailing list