delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/06/14:51:15

From: makulik AT tf16 DOT mch DOT sni DOT de (Makulik.Guenther T 27528 R 91-811 WS tx24 )
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Volatile
Date: 6 Aug 1997 14:12:24 GMT
Organization: Siemens Nixdorf Inc.
Lines: 16
Message-ID: <5sa0o8$18k$1@horus.mch.sni.de>
References: <33E8495B DOT 3EBC AT starnets DOT ro>
NNTP-Posting-Host: tmntn.mch.sni.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Korenschi Francisc Eduard (sarmis AT starnets DOT ro) wrote:
:   I know it sounds crazy, but what does the 'voltaile' with a
: variable/function ?

AFAIK the keyword volatile in a variable definition designates the 
compiler that this variable can be changed from within another process
context and it's contents is not only depending on assignments in the
actual process context.
I have never needed this so far.

I've no idea, what this means in the context of a function declaration,
but I'm not sure if it's valid syntax to use it there. Please correct
me if I am wrong.

hth
guenther

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019