🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #20846

Re: Broken DrawString in LSC?

#20846
From: lipsett
Date: Mon, 26 Oct 1987 15:26
13 lines
1199 bytes

DrawString (and the other Toolbox routines) accept Pascal strings,
which are counted ASCII strings.  LSC uses C strings by default.  LSC
WILL NOT AUTOMATICALLY CONVERT FOR YOU (this is a feature).  You can
specify a Pascal-style string literal by the syntax "\pyour string".
The runtime routines PtoCstr and CtoPstr will convert from one style
to the other in-place (and also return the converted string as a
function value).  When you use them, remember to include <pascal.h> or
to declare the function types (I only say this because it took me two
days to find this stupid error on my part).

Roger Lipsett
Technical Details
Message-ID: <127200009@inmet>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cca!mirror!ishmael!inmet!lipsett
References: <11540031@hpsmtc1.HP.COM>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cca!mirror!ishmael!inmet!lipsett
From: lipsett@inmet.UUCP
Newsgroups: comp.sys.mac
Subject: Re: Broken DrawString in LSC?
Message-ID: <127200009@inmet>
Date: Mon, 26-Oct-87 10:26:00 EST
Article-I.D.: inmet.127200009
Posted: Mon Oct 26 10:26:00 1987
Date-Received: Sat, 31-Oct-87 02:28:56 EST
References: <11540031@hpsmtc1.HP.COM>
Lines: 13
Nf-ID: #R:hpsmtc1.HP.COM:-1154003100:inmet:127200009:000:610
Nf-From: inmet.UUCP!lipsett    Oct 26 10:26:00 1987