Hi Steve,
On 23 May 2000 at 02:03:14 GMT -0700 (which was 10:03 where I
live) [EMAIL PROTECTED] wrote and made these points on the subject
of "The Bat! - bug report - Message Truncated after =00":
>> In the context of 'C' and 'C++' programming where a nul character
>> (Ascii Zero) denotes the end of a string of characters.
> Yes, now translate how a single null character will truncate an entire
> message and not just a single string;
Easy (see below).
> considering each line is a separate string.
Basic mistaken premise. You're talking standards/definitions - not 'C'
programming.
> Also, aren't those codes normally appended to the end of the line?
'C' knows nothing of "lines". From the perspective of a 'C' program
such entities are entirely a figment of the programmers fevered
imagination.
> What, then, is going to be trunctated? :)
'C' programs know nothing of EOL /n characters. Streams know something
of them ... if streams are being used at all. To parse a message and
to stop at the end of every line is a feat of programming and not
default behaviour of strings. The way this is usually achieved in 'C'
is to read the message into a buffer and then to scan the buffer for
/n characters. If the buffer (aka "string") runs out (i.e. has a nul)
then a badly written program would stop parsing right there. This
isn't a definitions issue. It's a bad programming issue.
--
Cheers,
.\\arck
Marck D. Pearlstone, Consultant Software Engineer
Moderator TBUDL / TBBETA
www: http://www.silverstones.com
PGP key: <mailto:[EMAIL PROTECTED]?Body=GET%20MARCKKEY>
*-----------------------------------------------
| Using The Bat! 1.42f S/N 14F4B4B2
| under Windows 98 4.10 Build 1998
*-----------------------------------------------
--
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
<mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
<mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------
You are subscribed as : [email protected]