CMP EMBEDDED.COM

Login | Register     Welcome Guest ESC Boston  esc india  Call for Abstracts
 


Table 1 Reverse notation table
Standard C Types
Prefix Type Example
uc unsigned char ucByteVariable
sc signed char scByteVariable
bf bit field bfFlags
us signed short ssWordVariable
ss signed char scByteVariable
ul unsigned long ulDouble
sl signed long slDouble
adt abstract data type adtUNION_VAR
fl floating flSpeedOfLight,
flSHUTTLE_TRAJECTORY
Pointers to any of these types (add a p in front of the prefix)
Prefix Type Example
p???, p?? pointer to ??? type pucByteVariable (a pointer to an unsigned character type)
padtSTRUCTURE (a pointer to an abstract data type)
pa?? pointer to array of type ?? paucByteVariable (a pointer to array of type character)
Scope
Prefix Type Example
All uppercase global variables ssGLOBAL_VAR_ONE
First letter uppercase and at least one lower-case letter to follow local variables usLocalOne, slLOCALone, bfFlags_4TEST
Constants
Prefix Type Example
All uppercase with optional prefix type followed by an underscore constants TIME_CODE, SS_PI, optional prefix type SL_GRAVITY

Back

Embedded.com Career Center
Ready to take that job and shove it?
SEARCH JOBS

Browse all jobs

SPONSOR
RECENT JOB POSTINGS


 :