TIP: Click on subject to list as thread! ANSI
echo: net_dev
to: Andrew Ziem
from: mark lewis
date: 1998-05-25 16:26:16
subject: (1/2) PKT2000 revision 2000.005

AZ> I was all like, "No Way!" and Vincent was all ::

 VD>>   - Open String Type. This is a special string that allows for dynamic
 VD>>     length strings within message headers. The basic structure
 VD>> consists
 VD>>     of a length byte, followed by that length of characters (that make
 VD>>     up the string). A simple (pascalesque) method of reading such a
 VD>>     string would be:

 AZ> Why not use a C string type?

one reason that i see is that for pascalers to work with c strings takes a
bit more work and even then they may not be usable in the fashion that a
pascaler may want to use them.

a pascal string, on the other hand, is very easy for a c programer to read.
simply read in the length byte and then read that count of characters. the
c programers don't have to worry about any kind of string length either.

note also that i'm not involved in any of the sysops tech net stuff but
only offer these observations from years of experience... i also happen to
know that many of those involved in STN are pascal programers though there
are some c coders, too 

)\/(ark

* Origin: (1:3634/12)
SEEN-BY: 20/10 200/0 201/0 100 200 209 300 400 407 411 505 600 204/450 205/0
SEEN-BY: 206/0 270/101 490/21 633/267 270
@PATH: 3634/12 3651/9 396/1 270/101 201/505 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.