Should 0xEF actually be 0x7F?

Regards,

Steve

-----Original Message-----
From: Dave Lippincott [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 07, 2000 2:16 PM
To: Palm Developer Forum
Subject: Re: bits of string


If you want to clear the bits...
char *ClearFirstLastBits(char *TheString)
{
    if(StrLen(TheString)
        {
        TheString[0] &= 0xFE;
        TheString[StrLen(TheString)-1] &= 0xEF;
        }
return TheString;
}
You really can't 'remove' the bits because you need 8 bits to make up a
character. If this is not what you're looking for, could you be more
specific.

----- Original Message -----
From: "Charles Rezsonya" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, July 07, 2000 1:14 PM
Subject: bits of string


> hey,  i want to take a string,  and convert it to binary,  remove the
first
> and last bit,  and have the pointer point to that.  anyone know how i can
> accomplish this???
>
> tia
> Charles
>
>
> --
> 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/

-- 
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