LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Maximum length of constant and variable name

What is the maximum length of constant (-> #define) and variable name in order that CVI can differ one name from an other name?

 

 

0 Kudos
Message 1 of 3
(3,619 Views)

Is there no infornmation available ?

Message Edited by Zaruma on 11-30-2009 06:15 AM
0 Kudos
Message 2 of 3
(3,574 Views)
I believe that CVI is no different from any other C compiler in this regard.  Maximum length is 63 characters for macros and internal names, and 31 characters from external names.  You should be able to use longer names, but keep in mind that the compiler will only look at the first 63/31 characters so it won't be able to tell the difference between something like ReallyIncrediblyLongFunctionNameWithLotsOfCharactersThatTakesWayTooLongToType1() and ReallyIncrediblyLongFunctionNameWithLotsOfCharactersThatTakesWayTooLongToType2().
0 Kudos
Message 3 of 3
(3,567 Views)