PocketC function argument quantity limit?

Discuss PocketC for Palm OS (including Desktop Edition)

Postby johndb on Fri Jan 26, 2001 6:05 pm

Does PocketC have a limit on the number of arguments that can be passed to a function?

If I pass 10 or less arguments it compiles fine but if I pass 11 arguments the compiler returns an error "'subname' parameter 10 differs from declaration".

The declaration does match the header file.

Any insights?
BTW - I do need the number of arguments ;-)


Posts: 3
Joined: Tue Jan 23, 2001 8:40 pm
Location: Canada

Postby Vilmos on Sun Jan 28, 2001 1:37 pm

10 is the limit, it says so in the new version. If you really need more than that and can't make some global, or factor your functions I would suggest making your arguments into an array and then just pass the pointer to the array.

Posts: 174
Joined: Tue Dec 05, 2000 6:13 pm
Location: Canada

Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 3 guests