> On Sat, May 25, 2002 at 08:14:25PM -0700, "Joe" wrote:
> > There is no strlen() function in the Palm API.  That, 
> > coupled with the fact that you are using char everywhere 
> > instead of Char or WChar, leads me to suspect that you 
> > aren't running this on any Palm Powered device.

--- John Marshall <[EMAIL PROTECTED]> wrote:
> Oh please :-(
> 
>       int len (const char *s) { return strlen (s); }
> 
> compiles just fine with m68k-palmos-gcc, and runs on any 
> Palm OS device.

But will not compile with CodeWarrior for Palm without including extra
libs.  I am only guilty of being overly CW-centric. :)

> In the end, the choice of whether to use names like "char" 
> and "int", which are immediately familiar to any C programmer 
> anywhere, ... really comes down to a personal choice of 
> whether to drink Palm's nomenclature Kool-aid.  

The only counter argument I have for that is that I have noticed that
people who think they are C programmers often have a lot of difficulty
with subtle implementation differences in the Palm API functions (e.g.,
strncpy vs. StrNCopy, etc.).  Those who start using the Palm spelling
for everything have less difficulty with this because they are
constantly reminded (by spelling changes) that they are *not* using the
standard C library functions.


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to