Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-26-2003, 01:54 PM   #1
Member (7 bit)
 
Dreamscape's Avatar
 
Join Date: May 2003
Location: Tranquility
Posts: 112
byte offsets

This probably belongs in a real programming forum, but corporate firewall does not let me get to my fake email account where I send all my junk mail, so I will have to wait til I get to an outside computer to register.

Anyways, I am doing some programming because that is what I am expected to do, and am working with byte offsets.

Now, the line:

"hello"

Without quotes is 5 bytes, but the line:

"hello
"

is 7 bytes (notice the hard return).

What's up with that? Is it a carriage return and a form feed?
Dreamscape is offline   Reply With Quote
Old 06-26-2003, 02:22 PM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Re: byte offsets

Quote:
Originally posted by Dreamscape
What's up with that? Is it a carriage return and a form feed?
I think that is correct. The Carriage Return and Line Feed take up two bytes.

What language are you programming in?
doctorgonzo is offline   Reply With Quote
Old 06-26-2003, 02:48 PM   #3
Member (7 bit)
 
Dreamscape's Avatar
 
Join Date: May 2003
Location: Tranquility
Posts: 112
Thanks
Working with embedded devices
Was the Palm OS at one time
Currently the Pocket PC platform

Translation: Crippled VB.
Dreamscape is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:02 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2