Path: utzoo!attcan!uunet!munnari!castan From: castan@munnari.oz (Jason Castan) Newsgroups: comp.sys.mac.programmer Subject: Re: sprintf problems under LSC 2.15 Summary: try lsc 3.0 with build code resource library Message-ID: <2312@munnari.oz> Date: 23 Aug 88 04:20:26 GMT References: <4562@saturn.ucsc.edu> <805@helios.ee.lbl.gov> Organization: Comp Sci, Melbourne Uni, Australia Lines: 18 > In article <4562@saturn.ucsc.edu> sirkm@ssyx.ucsc.edu (Greg Anderson) writes: > >I am working on a HyperCard XFCN using LSC 2.15. The statement > >strcpy(CStr,"junk"); works, but sprintf(CStr,"junk"); causes the > >XFCN to crash. Is the printf library of LSC incompatible with > >HyperCard, or am I missing some libraries? I'm linking with strings, > >sprintf/sscanf, MacTraps and XCmdGlue.c. > Try LSC 3.0. Set the sprintf project to code resource and do a build library. Remember to use SetUpA4() RestoreA4() in your main(). This is straight from the manual, and I havent done it yet, though I just researched it because I need sprintf real soon now for some code i'm writing. Alternately, if your company (or is it u :-) is too stingy to buy lsc 3.0, just hack the printf*.c sources provided is LSC 2.*. john lim a very satisfied lsc 3.0 user