Ben,
    when i looked at the values of what sizeof() and strlen() returned on 
was 34 the other was 33 respectively (0x0022, 0x0021).

-- 


Scott Erickson
Software Development Team, FB-4, Inc.
[EMAIL PROTECTED]
"Ben Combee" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> At 12:50 PM 4/25/2005, you wrote:
>>Heres the deal... My app is using NetLib to make socket conections to a
>>webserver.  When using the simulator, everything worked fine.  The data 
>>made
>>it to the device, and i did what i needed to with the webpages data.  No
>>problems at all.  But when i put it on the treo650, it would get hungup on
>>the NetLibDmReceive() call.  I did some testing and found 
>>this...sizeof("GET
>>/mypage HTTP/1.0\r\n\r\n") and StrLen("GET /mypage HTTP/1.0\r\n\r\n") 
>>would
>>return different values, StrLen() was one higher then sizeof().  this was
>
> sizeof("any string you want to put here") will always be 4.  sizeof 
> returns the size of the data type, and a string constant in C has the data 
> type "const char *", a 4-byte pointer.
>
>
> -- Ben Combee, Senior Software Engineer, palmOne, Inc.
>    "Combee on Palm OS" weblog: http://palmos.combee.net/
>    Developer Forum Archives:   http://news.palmos.com/read/all_forums/
>
> 



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

Reply via email to