Allowed variable names in C

The following types of names have various problems:

Names beginning with an underscore

Names beginning with two underscores, like __var, or an underscore and a capital letter, _Var, are reserved for system use.

Prefixes you can't use

str, mem

Suffixes you can't use

_t
Reserved by Posix.
E<digit>
Reserved for error codes.

Web links


Copyright © Ben Bullock 2009-2018. All rights reserved. For comments, questions, and corrections, please email Ben Bullock (benkasminbullock@gmail.com) or use the discussion group at Google Groups. / Privacy / Disclaimer