Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!mcsun!ukc!edcastle!cs.ed.ac.uk!nick From: nick@cs.ed.ac.uk (Nick Rothwell) Newsgroups: comp.sys.mac.programmer Subject: Re: Problems with Think C and sprintf() on Mac Plus Message-ID: <13238@skye.cs.ed.ac.uk> Date: 26 Jun 91 09:37:24 GMT References: <16532@reed.UUCP> Sender: nnews@cs.ed.ac.uk Reply-To: nick@lfcs.ed.ac.uk Organization: Muriel Gray Fan Club (sole member) Lines: 17 In article <16532@reed.UUCP>, cutler@reed.UUCP (Steven J. Russell) writes: > result = sprintf(c, " %f", f); > s = CtoPstr(c); > SetIText(item, s); (i) I don't see any store allocation for `c'. (ii) I thought CtoPstr worked in-place rather than returning a result. In fact, it would have to (see (i)). Nick. -- Nick Rothwell, Laboratory for Foundations of Computer Science, Edinburgh. nick@lfcs.ed.ac.uk !mcsun!ukc!lfcs!nick ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ <-- WEST VIEWING ROOM EAST VIEWING ROOM -->