🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #25076

C strings in MPW

#25076
From: Michael Zentner
Date: Mon, 08 Feb 1988 17:43
12 lines
875 bytes
This is in response to a problem flip!pixar was having concerning C strings
in MPW.

The MPW glue routines that convert C strings to their Pascal form do so 
ONLY for strings passed as function arguements, they do NOT work on strings
that are part of of structures as records. So, fer instance in SFGetFile,
the fName filed in the reply structure is a Pascal string, but the prompt
and origName parameters are C strings.

Also, whenever MPW converts a string with the "\p" indicator, the string will
take up the same amount of space with the length byte added as the C string
with the null byte at the end.
Technical Details
Message-ID: <5196@well.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!hplabs!well!mz

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!hplabs!well!mz
From: mz@well.UUCP (Michael Zentner)
Newsgroups: comp.sys.mac
Subject: C strings in MPW
Message-ID: <5196@well.UUCP>
Date: 8 Feb 88 17:43:53 GMT
Lines: 11
Keywords: MPW C Strings