From -8632868298919993727
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,9d8a465d14c25851
X-Google-Attributes: gidf78e5,public
From: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: strchr should be fixed in the standard
Date: 1997/05/07
Message-ID: <5kpn50$qrl@mulga.cs.mu.OZ.AU>#1/1
X-Deja-AN: 239953012
References: <336F6A69.2DD8@booksys.com>
X-Original-Date: 7 May 1997 10:56:32 GMT
Organization: Comp Sci, University of Melbourne
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBM3Bpc+EDnX0m9pzZAQGAxAF/W8jPjusM8cvhKEJKNGJSA1sG+uJ9U/z7 Uk9GO5DkRMHpvWPofHwzBx0koLw5UU0c =PHTH
Newsgroups: comp.std.c++
Originator: fjh@mundook.cs.mu.OZ.AU


Mark Jones <mark@booksys.com> writes:

>Has anyone given thought to having two version of strchr?
>
>const char *strchr(const char *s, int c)
>and
>char *strchr(char *s, int c)
...
>Comments?  Is this old news?

Yes, it is old news: not only has this been considered, it is indeed
part of the C++ draft working paper.  Similarly there are two versions
of strrchr(), strpbrk(), strstr(), memchr(), wcschr(), wcsrchr(),
wcsstr(), and wmemchr().  See 21.4 [lib.c.strings] in the DWP.

--
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]



