返回值为零,说明是一次成功的解析,否则返回的是非零值。
The return value is zero for a successful parse, and non-zero otherwise.
清单10说明处理函数返回值的代码应该是什么样的。
Listing 10 shows what should the code to handle this situation should look like.
在C语言和大部分语言中,你必须说明函数的返回值。
You have to with C, as with a lot of programming language, say what you return.
如果返回值为零,则说明这两个字符串是相等的。
A return value of zero means that the two strings are equivalent.
如果返回值大于32就说明成功了,如果小于等于32则说明失败。
Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise.
如果返回值大于32就说明成功了,如果小于等于32则说明失败。
Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise.
应用推荐