先静大哥,请问《系统程序员成长计划》第19页中函数sum_cb:
static DListRet sum_cb( void* ctx, void* data )
{
long long* result = ctx;
*result += ( int )data;
return DLIST_RET_OK;
}
函数的第二行代码是不是应该为:*result += *( ( int* )data );
谢谢!
Original issue reported on code.google.com by jiangtao...@gmail.com on 28 Dec 2010 at 8:05
Original issue reported on code.google.com by
jiangtao...@gmail.comon 28 Dec 2010 at 8:05