Skip to content

P19中函数sum_cb的疑问 #14

Description

@GoogleCodeExporter
先静大哥,请问《系统程序员成长计划》第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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions