"_doprnt" query

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Sat Dec 21 08:25:47 AEST 1985


> > > I am trying to get a screen editor working on my Fortune 32:16 system.  It
> > > keeps crashing in the routine "_doprnt" (giving me a memory addressing error).
> > > I can't seem to find any documentation on it.
> > 
> > _doprnt() is used internally by the printf() family of functions.
> > One common cause of crashes in it is passing a bum pointer for a
> > %s format spec, or not having the correct number of arguments.
> 
> A common missuse of scanf and sprintf, is calling by value and
> not by address. The target variable should be called by address.

All the printf family are called by value.
What you say is try for scanf family usage errors, though.



More information about the Comp.unix mailing list