sprintf (again)
Vic Abell
abe at mace.cc.purdue.edu
Wed Jun 12 00:09:24 AEST 1991
In article <9106120920.AA08552 at fkrs1.phc.chalmers.se>
biorn at 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.
More information about the Comp.unix.aix
mailing list