Skip to content

p56页的比较函数? #16

Description

@GoogleCodeExporter
int int_cmp(void *a, void *b) {
    return (int)a - (int)b; 
}
这样比较不是指针地址吗?可以这样做吗?还是一处错误?

谢谢

Original issue reported on code.google.com by joshua...@gmail.com on 18 Aug 2011 at 8:13

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