Article View: comp.std.c
Article #2076Re: on "use", and the lvalue-ness of string literals
From: Larry Jones
Date: Thu, 05 Nov 1992 14:37
Date: Thu, 05 Nov 1992 14:37
14 lines
1146 bytes
1146 bytes
In article <18106@ksr.com>, jfw@ksr.com (John F. Woods) writes: > Remember that a strictly conforming program cannot use "volatile"; it is not > a guarantee of portability, it is a "portable" way to beg for mercy :-). What leads you to that conclusion? There are a few standard uses for volatile as well as the implementation-defined ones: you must declare local auto variables as volatile if you want their values preserved by longjmp calls, and you must declare a variable that is accessed by both the main-line code and an asynchronous signal handler as volatile to avoid undefined behavior. ---- Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH 45150-2789 513-576-2070 larry.jones@sdrc.com or ...uunet!sdrc!larry.jones Ever notice how tense grown-ups get when they're recreating? -- Calvin
Technical Details
Message-ID:
<2220@sdrc.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!sdrc!thor!scjonesReferences:
<1992Nov2.162310.10094@ichips.intel.com> <18106@ksr.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sdrc!thor!scjones From: scjones@thor.sdrc.com (Larry Jones) Newsgroups: comp.std.c Subject: Re: on "use", and the lvalue-ness of string literals Message-ID: <2220@sdrc.COM> Date: 5 Nov 92 14:37:37 GMT References: <1992Nov2.162310.10094@ichips.intel.com> <18106@ksr.com> Sender: news@sdrc.COM Lines: 14