| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
| Date: | Tue, 20 Jan 2004 11:26:07 -0500 |
| Message-Id: | <200401201626.i0KGQ7d8026812@envy.delorie.com> |
| From: | DJ Delorie <dj AT delorie DOT com> |
| To: | djgpp-workers AT delorie DOT com |
| In-reply-to: | <Pine.OSF.4.58.0401201143590.29095@sirppi.helsinki.fi> (message |
| from Esa A E Peuha on Tue, 20 Jan 2004 11:57:20 +0200 (EET)) | |
| Subject: | Re: Patch for bsearch |
| References: | <Pine DOT OSF DOT 4 DOT 58 DOT 0401201143590 DOT 29095 AT sirppi DOT helsinki DOT fi> |
| Reply-To: | djgpp-workers AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp-workers AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
One major problems with this. "void" has no size, so you can't do pointer arithmetic with it. Any void* must be cast to a pointer to non-void to do pointer arithmetic. I'm also not a big fan of "NULL" in general, but it's OK in this case. In general, NULL is *not* the same as a literal zero.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |