correct qtime

Amos Shapir amos at taux01.UUCP
Wed Sep 13 17:13:48 AEST 1989


In article <472 at maytag.waterloo.edu> lhf at aries5 (Luiz H. deFigueiredo) writes:
>Just the other day some Ade Lovett posted qtime.
>Unfortunately it had a bug in it (I'll let you discover/come across it).
>Here is my version.
...
>static char *adverb[]=
>{
> NULL, "just after ", "a little after ", "nearly ", "almost "
>};

This is yet another bug, important enough to require posting -
NULL is not the same as "" !  The latter is an empty string, while
the former is an *illegal* string.  At best, your system may print "(null)"
when you try to print it, at worst it would print garbage or even
dump core.

-- 
	Amos Shapir		amos at taux01.nsc.com or amos at nsc.nsc.com
National Semiconductor (Israel) P.O.B. 3007, Herzlia 46104, Israel
Tel. +972 52 522261  TWX: 33691, fax: +972-52-558322
34 48 E / 32 10 N			(My other cpu is a NS32532)



More information about the Alt.sources mailing list