From: Thomas Demmer Newsgroups: comp.os.msdos.djgpp Subject: Re: Is this a bug ??? or feature ?? Date: Thu, 16 Oct 1997 08:23:18 +0200 Organization: Lehrstuhl fuer Stroemungsmechanik Lines: 36 Message-ID: <3445B2D6.ABDBBC84@LSTM.Ruhr-UNI-Bochum.De> References: <19971014085053 DOT 3075 DOT rocketmail AT send2 DOT rocketmail DOT com> <34452E59 DOT 596E AT cs DOT com> NNTP-Posting-Host: c64.lstm.ruhr-uni-bochum.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk John M. Aldrich wrote: [...] > However, I must say again that you should NOT overwrite string constants > without a good reason; it's terrible programming. Unless this is the > exact intent of whatever project you are working on, there must be a > better way to do what you want. If you describe your goals, maybe we > can suggest something. > Hmm, maybe I don't get the point here, but I frequently do things like char inifile[256]="foo.bar"; and in a parse routine with getopt switch( c=getopt(argc, argv, "n:")){ case 'n': strcpy(inifile, optarg); break; ... Is this one of the rare occasions where char[] and *char are quite different things? -- Ciao Tom ************************************************************* * Thomas Demmer * * Lehrstuhl fuer Stroemungsmechanik * * Ruhr-Uni-Bochum * * Universitaetsstr. 150 * * D-44780 Bochum * * Tel: +49 234 700 6434 * * Fax: +49 234 709 4162 * * http://www.lstm.ruhr-uni-bochum.de/~demmer * *************************************************************