January 14, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=848

           Summary: typo in C sorting example
           Product: D
           Version: 1.00
          Platform: PC
               URL: http://www.digitalmars.com/d/ctod.html
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: braddr@puremagic.com


from http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/ctod, the C example has a typo:

int compare(const void *p1, const void *p2)
{
    type *t1 = (type *)p1;
    type *t1 = (type *)p2;  <--- should be t2 instead of t1

    return *t1 - *t2;
}


--