[comp.sys.amiga.tech] Son of Turnip- RawDoFmt

dfrancis@tronsbox.xei.com (Dennis Francis Heffernan) (11/01/90)

	My old problem was kind of boring, so I went out and got a new one.
	;-)

	Is amiga.lib's _sprintf() supposed to crash the second time you call
it?  No?  Didn't think so.  But it does when I call it the second time.
I'm at a complete loss to understand why; I use the same syntax both times.
Thing is, I'd rather use Exec's RawDoFmt() instead, but I don't understand
the autodocs.  I understand the part about putting an address to a format
string in a0.  I assume that 'DataStream' is an address to the string of
data waiting to be printed.  It's the next two that throw me.  It looks like
a2 gets the address of the label of a routine you supply that actually writes
the data.  And I haven't a clue as to what goes in a3.  Part of my problem is
that the sample code given in the RKM assumes "C-style stack based function
conventions" and I have no idea what these are.

	I asked this question before, but my site lost its feed temporarily
directly afterwards, so any answers spiraled off into the aether.

 
dfrancis@tronsbox.xei.com   ...uunet!tronsbox!dfrancis     GEnie: D.HEFFERNAN1
"...when Fortran was introduced, it was claimed that Fortran would largely
eliminate coding and debugging!  Of course, that claim proved to be quite false"
- UNIVERSAL ASSEMBLY LANGUAGE, Robert M. Fitz & Larry Crocket ^^no kidding!