Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!mace.cc.purdue.edu!abe From: abe@mace.cc.purdue.edu (Vic Abell) Newsgroups: comp.unix.aix Subject: Re: sprintf (again) Message-ID: <7718@mace.cc.purdue.edu> Date: 11 Jun 91 14:09:24 GMT Article-I.D.: mace.7718 References: <9106120920.AA08552@fkrs1.phc.chalmers.se> Organization: Purdue University Computing Center Lines: 11 In article <9106120920.AA08552@fkrs1.phc.chalmers.se> biorn@FKRS1.PHC.CHALMERS.SE (Bjorn Sandell) asks about sprintf's that return char *. For you, Bjorn, the unpleasant reality is that current standards call for sprintf to return an integer, so you are going to have to convert any code that expects a character pointer return from sprintf. Versions of sprintf that return a character pointer to the target buffer are fast becoming obsolete. This is true of POSIX, and the versions of System V and BSD from which AIX descends.