*BSD News Article 5625


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!sgiblab!darwin.sura.net!spool.mu.edu!umn.edu!math.fu-berlin.de!hrz.tu-chemnitz.de!wutcd
From: wutcd@chemnitz.guug.de (Joerg Wunsch)
Subject: Re: sprintf type differences
Message-ID: <wutcd.717448689@hadrian>
Keywords: UNIX vs. 386BSD
Sender: bin@hrz.tu-chemnitz.de (Owner of all binaries)
Organization: tu-chemnitz
References: <1992Sep18.211335.16381@seq.uncwil.edu>
Date: Fri, 25 Sep 1992 19:18:09 GMT
Lines: 21

faldor@seq.uncwil.edu (Sherman Brown) writes:

>	Can someone tell me the major differences in the types for
>sprintf in UNIX vs. 386BSD0.1  ...

Well, are there any? I have 386BSD and a Data General DG/UX 5.4.1 (based
on SVR4) available at the moment, both manuals match with the ANSI de-
finition which says

	int sprintf(char *s, const char *format, ...);

with the number of characters transferred (excl. the trailing \0) as
return value. Any other opinions???

	J"org

--
J"org Wunsch, TCD GmbH Dresden, R"ahnitzgasse 18, D-O-8060 Dresden
                                                              \     ~.~. 
	joerg_wunsch%bonnie@hadrian.hrz.tu-chemnitz.de         \   ~  | ~ 
	voice: +49-351-5965 137                                 \    ===