🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1565

Re: void*

#1565
From: Doug Gwyn
Date: Mon, 06 Aug 1990 19:28
6 lines
697 bytes
In article <40624@mips.mips.COM> sah@mips.COM (Steve Hanson) writes:
>however the inc/dec cause a temporary variable to be introduced:

That could be avoided by defining the function as
	void *memchr(const char *s, int c, unsigned int n)
which works because of the "same representation" requirement.
Technical Details
Message-ID: <13499@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn
References: <40624@mips.mips.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: void*
Message-ID: <13499@smoke.BRL.MIL>
Date: 6 Aug 90 19:28:50 GMT
References: <40624@mips.mips.COM>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 6