From: johnsone@uxh.cso.uiuc.edu Date: 31 Aug 90 00:16 CDT Newsgroups: comp.sys.mac.programmer Subject: Re: Two (2) weenie C questions... Message-ID: <53100021@uxh.cso.uiuc.edu> Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxh.cso.uiuc.edu!johnsone Nf-ID: #R:<1990Aug29:202759:uxh.cso.uiuc.edu:53100021:000:875 Nf-From: uxh.cso.uiuc.edu!johnsone Aug 31 00:16:00 1990 References: <202759@<1990Aug29> /* Written 2:21 pm Aug 29, 1990 by gft_robert@gsbacd.uchicago.edu */ >2) How does one return a Str255 from a function? THINK complains "can't return >array from function"? But aren't I returning a pointer to the first (Oth) char >of the Str255 if I "return myString"? Do I need Str255 *MyProc() if I want to >pass back any reference to a Str255 at all? I was going to suggest declaring the function: char *MyProc() but I just tried it and it doesn't work. Using this will work: MyProc( Str255 myString ) { . . . } called with: Str255 aString; . . . MyProc( aString ); This doesn't give you a function, but it may serve your purpose. Erik A. Johnson, Graduate Student \ Internet: johnsone@uxh.cso.uiuc.edu Aeronautical & Astronautical Engineering \ University of Illinois at Urbana-Champaign \