Path: utzoo!attcan!uunet!mcvax!ukc!warwick!geoff From: geoff@warwick.UUCP (Geoff Rimmer) Newsgroups: comp.lang.c Subject: Re: lint question Message-ID: <915@ubu.warwick.UUCP> Date: 17 Jan 89 07:49:33 GMT References: <491@babbage.acc.virginia.edu> <1989Jan16.080743.2424@utzoo.uucp> Sender: news@warwick.UUCP Reply-To: geoff@emerald.UUCP (Geoff Rimmer) Organization: Computer Science, Warwick University, UK Lines: 29 In article <1989Jan16.080743.2424@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes: > [...] >printf ... >is a pain to check -- especially since the type of its returned value >is not portable among current Unixes. I thought that problem was only with sprintf, where on some systems it returns the string it has just produced, and on others the number of characters written to the string. I understood that both printf and fprintf return int (# chars printed) on every system. cat > /usr/include/std/flame-inviter.h Please correct me if I'm wrong. ^D #include Geoff ------------------------------------------------------------ Geoff Rimmer, Computer Science, Warwick University, England. geoff@uk.ac.warwick.emerald "Well I think it's rubbish. I'm going to vomit." "I can think of no higher compliment." - Filthy Rich and Catflap, 1986. ------------------------------------------------------------