Subject: Re: ovbcopy
To: None <source-changes@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: source-changes
Date: 07/08/2001 22:49:08
[ On Monday, July 9, 2001 at 10:29:14 (+1000), Luke Mewburn wrote: ]
> Subject: Re: ovbcopy
>
> On Mon, Jul 09, 2001 at 08:50:58AM +0900, itojun@iijlab.net wrote:
> This is the practice I've been using in portable user-land code for
> years. (Use strrchr() instead of rindex(), memmove() instead of bcopy(),
> etc, and provide #defines for systems that don't have str*() or mem*())
I do have a bit of still highly portable code that uses bzero() and
provides a macro defined in terms of memset() simply because it's not
possible to go the other way around, at least not without getting fancy
and maybe providing a private function or some inline code.
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>