Linux-Hams archive - March 1997: Re: Final listen crash-preventing patch

Re: Final listen crash-preventing patch

Heikki Hannikainen (xqgolnwy.yead@mailit.tunk.net)
Mon, 10 Mar 1997 17:00:48 +0200 (EET)


On Fri, 28 Feb 1997, Mike Bilow wrote:

> HH> - printf(str);
> HH> + fputs(str, stdout);

> stack referencing of junk. The correct form in this case is
>
> printf("%s", str)
>
> instead, although "fputs()" is a good solution, too.

I'd guess fputs() is a LOT faster than printf()? Why use printf(), if
we don't want any formatting?

---
 < Heikki Hannikainen      <> ax.25:   oh7lzb@oh7rba.#kuo.fin.eu >
 < Internet: cvulosj.cquxdk@mhlee.kek.jp <> Amprnet: tlruxox@vericept.com >