Jump to content

Recommended Posts

volatile and const are access modifiers and not part of a data type which typedef is just another name for a data type.


You will have to stick to using 'volatile v8 myuc' to avoid errors.


I am no expert on K&R C it's just my thinking.





Link to post
Share on other sites
Should I be able to do this? Compiler gives error (v6.90):

Regards, David.

typedef volatile unsigned char v8;



MS VC6 lets me do:


typedef volatile unsigned char vuchar;

vuchar c = 1;



without complaint, so I don't see why not.



Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...