返回值为零,说明是一次成功的解析,否则返回的是非零值。
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.
I don't have to go read what it printed out in the screen. This has returned a value that I can use. Because I could do a test to say, is this a return value? If it's not, I'll do something else with it. So the binding is still there, it simply doesn't print it out.
我不想读到屏幕中打印出来的这行字,程序返回过一个我能够使用的值,因为我可以做个小测试,来说明这是否是返回的值,如果不是,我可以做一些其它的事,而这个绑定依然在这儿,没有打印任何东西。
You have to with C, as with a lot of programming language, say what you return.
在C语言和大部分语言中,你必须说明函数的返回值。
> So void, again, is my way of saying swap does not return anything.
>,void,再次强调下,这是一种,说明函数不返回任何值的方式。
应用推荐