Newsgroups: fj.lang.c,fj.lang.c++
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!news.nc.u-tokyo.ac.jp!t-server!escargot!cryst!alps!paris!newssinet!hakata!sakura.kudpc!kuis-news!wnoc-kyo-news!aist-nara!odins-suita!chiba-ns!villon.nig.ac.jp!aa.com!newsbase.nisiq.net!newsfeed.internetmci.com!in2.uu.net!192.244.176.52!news.iij.ad.jp!iijnet!hypercore.co.jp!kaz
From: Kazuhiro Sasayama <kaz@hypercore.co.jp>
Subject: Re: Maximal use of "const" in function declarations ?
Sender: kaz@lilia.hypercore.co.jp
References: <ywnk9rjg624.fsf@azusa.proc.flab.fujitsu.co.jp>
	<ITOH.96Nov19124952@corn.scc.jest.co.jp>
X-Newsreader: Gnus v5.3/Emacs 19.34
Mime-Version: 1.0 (generated by tm-edit 7.61)
Organization: Hypercore Software Design, Ltd., Nagoya, Japan <URL:http://www.spice.or.jp/~hypercor/>
Content-Type: text/plain; charset=ISO-2022-JP
Message-ID: <2mohgi775f.fsf@lilia.hypercore.co.jp>
Lines: 18
X-Attribution: Kaz
Date: Thu, 28 Nov 1996 12:09:48 GMT
Xref: galaxy.trc.rwcp.or.jp fj.lang.c:3228 fj.lang.c++:216
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=3228&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B8E$$OC$J$s$G$9$,!#(B

>>>>> "HI" == Hiroshi Itoh <itoh@scc.jest.co.jp> writes:

    HI>       char *strchr(const char *s, int c) $B$O3N$+$KNI$/$J$$$G$9$M!#(B

C $B$G$O$[$+$KE,Ev$JJ}K!$,$J$+$C$?$s$G$7$g$&!#(B `strchr' $B$O(B `const' $B$h$j(B
$B8E$$$G$9$+$i!";H$$J}$rJQ$($kLu$K$b9T$+$:!"$+$H$$$C$F(B const $B%G!<%?$K;H(B
$B$($J$$$N$OITJX$G$9$b$N$M!#(B

    HI>       $B$;$a$F!"(B
    HI>       const char *strchr(const char *s, int c);
    HI>       inline char *strchr(char *s, int c) { return (char*)strchr(s, c); }
    HI>       $B$H!"N>J}=q$$$F$*$$$FM_$7$+$C$?$G$9$M!#(B

inline $B4X?t$H$O8B$j$^$;$s$,!"I8=`(B C++ $B$G$O(B const $BHG$HHs(B const $BHG$,B?=E(B
$BDj5A$5$l$k$3$H$K$J$k$h$&$G$9!#$h$+$C$?$G$9$M!#(B

-- 
Kaz Sasayama, a Nagoyan X68000, Linux and OS/2 user.
pub  1024/5B09C385 1996/01/03 Kazuhiro Sasayama <kaz@hypercore.co.jp>
            Key fingerprint = 53 71 54 56 FB 3D 76 0B  92 5D 32 40 C5 34 38 00
