Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!ut-sally!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.unix,net.unix-wizards Subject: Re: "_doprnt" query Message-ID: <948@brl-tgr.ARPA> Date: Fri, 20-Dec-85 17:25:47 EST Article-I.D.: brl-tgr.948 Posted: Fri Dec 20 17:25:47 1985 Date-Received: Sun, 22-Dec-85 01:24:06 EST References: <280@ur-tut.UUCP> <491@brl-tgr.ARPA> <398@codas.UUCP> Distribution: net Organization: Ballistic Research Lab Lines: 13 Xref: watmath net.unix:6689 net.unix-wizards:16203 > > > 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.