Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ovbcopy



[ 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@localhost 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@localhost>     
<woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>;   Secrets of the Weird 
<woods%weird.com@localhost>



Home | Main Index | Thread Index | Old Index