home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uunet.ca!geac!r-node!zooid!ross
- From: Ross Ridge <ross@zooid.guild.org>
- Subject: Re: HIgher problems at hand. HELP!
- Organization: ZOOiD BBS
- Date: Wed, 29 Jul 1992 03:18:20 GMT
- Message-ID: <1992Jul29.031820.15906@zooid.guild.org>
- References: <9220806.7841@mulga.cs.mu.OZ.AU> <1992Jul27.212311.28125@zooid.guild.org> <1992Jul28.104059.4725@druid.uucp>
- Lines: 24
-
- Ross Ridge <ross@zooid.guild.org> writes:
- >But who knows what's >in <string.h> so it would be better if the "#define
- >const" was placed after the "#include <string.h>".
-
- darcy@druid.uucp (D'Arcy J.M. Cain) writes:
- >Except that the whole point is to prevent any warnings with full checking
- >turned on. Putting the define after the include would cause warnings
- >when strstr was redefined.
-
- If strstr() is declared in <string.h> then why are we redefining here?
- Wouldn't it already be in the standard library?
-
- >Other than changing the language itself I don't believe there is a "right"
- >way to code strstr(3).
-
- What's wrong with "return (char *)s;"?
-
- Ross Ridge
-
- --
- Ross Ridge - The Great HTMU l/ //
- [OO][oo]
- ross@zooid.guild.org /()\/()/
- uunet.ca!zooid!ross db //
-