| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Pascal strings |
On 09-30-93 20:12, Steven Pasztor had this to say to All: SP> Is there any way to get C to work with Pascal style SP> strings? The length byte at the start is very usefull SP> sometimes, and it would be good to be able to choose the SP> most appropriate method for the circumstances. Also, SP> converting back to C would be simple. I guess it depends on what you mean by "work with". The scheme that immediatley comes to my mind is to use a combined approach. There are probably other ways as well. What I have in mind is this: Have the length byte at the start of the string and a nul byte at the end. Have conversion functions (or macros) so you can use your Pascal-C strings in standard library functions. Michael. ___ Blue Wave/QWK v2.12 --- Maximus 2.01wb* Origin: Computer Connection Line 2 (08) 326 2388 (3:800/838) SEEN-BY: 50/99 54/54 99 620/243 622/405 623/630 711/401 409 430 807 808 809 SEEN-BY: 711/932 934 712/623 627 713/888 714/906 800/0 1 2 805 809 812 822 SEEN-BY: 800/828 830 838 843 846 @PATH: 800/809 1 54/54 99 711/808 809 934 |
|
| 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™.