Listing 2. Proper handling of the read API function return value.
清单2 .适当处理read api函数的返回值。
When the server receives the request from the client, the server executes the local function and returns the return value for the function to the client.
当服务器从客户端收到请求后,服务器执行本地函数,并将该函数的返回值返回给客户端。
The only thing that you have to put in the function prototype, again, is three things; one, the name of the function; the return value; and its arguments.
你唯一要加入到函数原型中的东西,是有三个东西,一,函数的名字,返回值,和它的参数。
Literally, return the control from this function, and take the value of the next expression, and return that as the value of the whole computation.
正如字面意义上说的,从这个函数返回,然后取得下一个表达式的值,并把这个值作为整个计算的结果返回。
And then the only other difference is obviously, it's a function I need to return a value.
然后还剩下一点明显的区别,对于方法我要有返回值。
The only thing that you have to put in the function prototype, ; again, is three things; one, the name of the function; the return value; and its arguments.
你唯一要加入到函数原型中的东西,是有三个东西,一,函数的名字;,返回值,和它的参数。
应用推荐