hansen%UUCP@MIPS.UUCP (Craig Hansen) (03/13/86)
Can anyone supply C source for a version of sprintf that runs under Domain/IX (BSD4.2)? I need to write functions like it (for printing error messages and so forth), and bsd4.2/ix stdio.h is different from stdio.h for both VAX and Sun, in that the _flag field has different values. Or, to ask another way, does anyone know what to replace _IOSTRNG with to port sprintf-like functions from VAX 4.2 to Apollo "4.2"? Craig Hansen | "Evathun tastes MIPS Computer Systems | bettah when it ...decwrl!glacier!mips!hansen | sits on a RISC"
rees@APOLLO.UUCP (Jim Rees) (03/20/86)
Can anyone supply C source for a version of sprintf that runs under Domain/IX (BSD4.2)? I need to write functions like it (for printing error messages and so forth), and bsd4.2/ix stdio.h is different from stdio.h for both VAX and Sun, in that the _flag field has different values. It seems to me that it would be a bad idea to depend on the internals of stdio to get your job done. I always use vprintf, vfprintf, and vsprintf to do this sort of thing. -------