Postby brankin on Wed Jan 16, 2002 4:28 am

Does PocketC support structures? I've tried
struct name {
int a; float b;
but it doesn't seem to work.
Posts: 1
Joined: Mon Oct 22, 2001 2:46 am

Postby degv on Wed Jan 16, 2002 11:40 am

Just drop the struct command.


int a,b;
string hi="hello";
Posts: 47
Joined: Tue Jul 31, 2001 3:26 pm
Location: United Kingdom

Postby jstadolnik on Wed Jan 16, 2002 1:09 pm

You can fake structures out in PocketC with arrays, which can be of mixed data types (ints, strings, floats, and chars).

See the PocketC built-in malloct function and the Array function in the PToolbox library.


The PToolboxLib guy.
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 1 guest