Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Program to output initials of a name Date: Tue, 27 Oct 2015 08:46:58 -0700 Organization: None to speak of Lines: 24 Message-ID: References: <3cd7df30-e7bc-4943-9762-f0f0a17fb3cf@googlegroups.com> <6b2fd7b2-0f00-40e8-80c0-b620cd15d0fe@googlegroups.com> <87egghlorx.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="21045"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3PY8khDJR5Gyd5JG2R4Lu" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:/gtk7g+qDQtY/Qoo90yBTFDg0Io= sha1:uQlkdxZccEeOjDs95We584rJF10= Xref: csiph.com comp.lang.c:73967 Ian Collins writes: > Keith Thompson wrote: >> Ian Collins writes: >> [...] >>> Which is the basic philosophy of the native compiler (cc) on my >>> preferred platform: if you want C89, use "-std=C89", if you want C99, >>> use "-std=C99" and if you want C11, use "-std=C11". All of these >>> attempt to be as close to conforming as they can. Plain cc implies the >>> current standard. If you want checking outside of the standards, use lint. >> >> Is "cc" on your platform a name (alias, symlink, wrapper, ...) for gcc? > > No, it's the Sun/Oracle C compiler. Interesting. I'm surprised that it uses an option syntax that's so similar to what gcc uses, but without being entirely consistent. Is the argument case-insensitive (e.g., does "-std=c89" work)? The version of Sun/Oracle's C compiler (for Solaris 5.9) doesn't recognize either form. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"