🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #25742

strings (HELP!)

#25742
From: Michael J. Schmelzer
Date: Sat, 27 Feb 1988 20:04
37 lines
1758 bytes
Hello again, everybody.
 
The MPW manual was no help concerning the conversion of C to Pascal
strings. The manual also cryptically states that the function
"c2psstr" always returns an "s" (or 's'), whatever that's supposed
to mean.
 
The function prototype is as follows:
/*
   strings.h -- string conversions
 
   C Interface to the Macintosh Libraries
   Copyright (c) 1985, 1986 Apple Computer, Inc.  All rights reserved.
*/
 
#ifndef __STRINGS__
#define __STRINGS__
 
char *p2cstr();
char *c2psstr();
#endif
 
I have written some applications in LSC and would like to become
competent in MPW before I enter the job market (!)
If someone could please provide a working example of C to Pascal string
conversion in MPW I would be eternally grateful.
(By the way, I remember reading here that someone was completely
disgusted with the way LSC handled these conversions. I'd like to know
why.)
 
Again, eternal thanks.
=========================================================================
comes around             Mike Schmelzer                  what goes around
=========================================================================
"Come on baby, worship me. I'm the god of fertility."
                                                 -Zodiac Mindwarp
Technical Details
Message-ID: <4592@pucc.Princeton.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!mcnc!gatech!udel!princeton!phoenix!pucc!MJSCHMEL

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!mcnc!gatech!udel!princeton!phoenix!pucc!MJSCHMEL
From: MJSCHMEL@pucc.Princeton.EDU (Michael J. Schmelzer)
Newsgroups: comp.sys.mac
Subject: strings (HELP!)
Message-ID: <4592@pucc.Princeton.EDU>
Date: 27 Feb 88 20:04:33 GMT
Reply-To: MJSCHMEL@pucc.Princeton.EDU
Organization: Princeton University, NJ
Lines: 36
Disclaimer: Author bears full responsibility for contents of this article