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

Reserved by Posix.
Reserved for error codes.

Web links

Copyright © Ben Bullock 2009-2021. All rights reserved. For comments, questions, and corrections, please email Ben Bullock ( or use the discussion group at Google Groups. News about the site. / Privacy / Disclaimer