Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - stdio.h
Page 1 of 1

PostPosted: Tue Mar 13, 2001 8:58 pm
by bricktop
im a begining programer and my class at school uses this header primarily. what would you guys advise be the easiest way to get into pocketc?

PostPosted: Wed Mar 14, 2001 1:20 am
by stephane
At the Orbworks homepage, follow the link to the "Palm OS docs", and review the documentation to see how PocketC is different than standard C.

PocketC doesn't use standard C library headers, it has its own built-in I/O functions, again listed in the docs. You would need to replace the standard C function with an equivalent one in PocketC.

As an example, the standard "hello, world" program in C looks something like this:
<pre id=code><font face=courier size=2 id=code>
#include "stdio.h"

main() {
printf("hello, world!\n");
}
</font id=code></pre id=code>
In PocketC it would be more like the following:
<pre id=code><font face=courier size=2 id=code>
main() {
puts("hello, world!\n");
}
</font id=code></pre id=code>
Two main differences: no include needed, and 'puts' is used instead of 'printf'.

Good luck <img src=icon_smile.gif border=0 align=middle>


St?ɬ©phane

PostPosted: Wed Mar 14, 2001 2:24 am
by bricktop
Alright, that should help. Just one more, what would the pocketc equal to the scanf command be?

PostPosted: Wed Mar 14, 2001 8:02 am
by Thad
You might find the following helpful:

the ANSI C Standard Library for PocketC on the PalmOS
(or as close to it as is humanly possible)
(c) T.Frogley 2000

http://www.photo.net/users/Thad/pclib/



Thad

PostPosted: Wed Mar 14, 2001 3:52 pm
by wolfgang
Hello,

the substitute for "scanf" is "gets"; it returns a string with the user input. Look at the documentation section on http://www.orbworks.com to get the full syntax.

Another BIG advantage of PocketC is that it knows a data type "string" which is a variable length text string. No need to mess around with arrays of char's <img src=icon_smile.gif border=0 align=middle>

Wolfgang

PostPosted: Wed Mar 14, 2001 10:53 pm
by bricktop
could you send me a link to the .prc
file for the pclib library please?
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
You might find the following helpful:

the ANSI C Standard Library for PocketC on the PalmOS
(or as close to it as is humanly possible)
(c) T.Frogley 2000

http://www.photo.net/users/Thad/pclib/



Thad
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

PostPosted: Thu Mar 15, 2001 2:21 am
by stephane
Brick,

There is no prc file, the library is a collection of source code files that you can include in your PocketC projects, to make them "somewhat" ANSI C compatible.


St?ɬ©phane