Path: utzoo!attcan!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.lang.c Subject: Re: Use of Const keyword in ANSI C Message-ID: <375@sdrc.UUCP> Date: 9 Sep 88 22:06:04 GMT References: <441@optilink.UUCP> Organization: Structural Dynamics Research Corp., Cincinnati Lines: 16 In article <441@optilink.UUCP>, cramer@optilink.UUCP (Clayton Cramer) writes: > [assignment to a "const char *" works without complaint] > > So have I missed something here in my understanding of 'const', or > is the Microsoft compiler broke? You've missed the binding order - "const char *" is a pointer to a constant character, what you want is "char * const" which is a constant pointer to a (non-constant) character. ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC scjones@sdrc.uucp 2000 Eastman Dr. BIX: ltl Milford, OH 45150 AT&T: (513) 576-2070 "Save the Quayles" - Mark Russell