Check out the String Manager functions and all will be well. Depending upon
your desired functionality, I suggest StrCompare, StrCaselessCompare and
StrStr.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Nicolás
> Zeitlin
> Sent: Friday, February 02, 2001 7:24 AM
> To: Palm Developer Forum
> Subject: char* == char[ ]
>
>
> Once I get a Pointer to a field, I can access its text. What I'd
> like to do
> is to check if its contents matchanoter variable. My problem is that the
> text property, is declared as char *. , but the *other* variable
> is declared
> as char [15].
>
> In other words, I'd like to do this:
>
> char search[15];
>
> search[0] = 's'
> search[1] = 'e'
> search[2] = 'a'
> search[3] = '\0'
>
> if (fieldP->text == search)
> {
>     ....
> }
>
> How can I do this? How can I check if a char* and a char[ ] have equal
> values?
>
> Thanks in advance,
>
> Nicolas Zeitlin
>
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>


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

Reply via email to