Date: Fri, 14 Jun 2002 14:40:07 -0400 From: Dan Arlow <dan@arlow.com> To: hackers@freebsd.org Subject: Re: sorting in C Message-ID: <B92FB0C7.2549%dan@arlow.com> In-Reply-To: <20020614124530.GA16778@lnuxlab.ath.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
dumb question: extra "&" in the previous post? why do both this > qsort(&array, NUM_INTS, sizeof(*array), > (int (*)(const void *, const void *)) comp); and this qsort(array, NUM_INTS, sizeof(*array), (int (*)(const void *, const void *)) comp); work properly? I tried both and both compile/run/sort fine. (the difference afaik is that the first passes an *int[] aka int** and the second passes an int[] aka int*) -dan (noob) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B92FB0C7.2549%dan>