Variables declared with a leading underscore

Discuss PocketC for Palm OS (including Desktop Edition)

Postby eeaness on Fri Jul 09, 2004 1:37 pm

In the todo.c example there are a number of variables declared with a leading underscore (_). What is the significance of the underscore?

Thanks,
Ian (a newbie)
eeaness
 
Posts: 1
Joined: Mon Jun 14, 2004 3:55 pm
Location: United Kingdom

Postby dewey on Wed Jul 14, 2004 2:59 am

There is nothing special about the underscore - it is just another legal idetifier character. todoStruct and the following 5 variables are the memory that the todo will be read into. The 5 _ variables are never referenced directly. See main for how todoStruct (and indirectly these other variables) are used.
dewey
Site Admin
 
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am


Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 2 guests

cron