Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!scherzo!allegra!mit-eddie!think!harvard!seismo!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: net.lang.c Subject: Re: wanted: sprintf for apollo DOMAIN BSD4.2/IX Message-ID: <2011@brl-smoke.ARPA> Date: Sun, 23-Mar-86 04:16:34 EST Article-I.D.: brl-smok.2011 Posted: Sun Mar 23 04:16:34 1986 Date-Received: Tue, 25-Mar-86 05:09:08 EST References: <407@mips.UUCP> Reply-To: gwyn@brl.ARPA Distribution: net Organization: Ballistic Research Lab (BRL) Lines: 16 In article <407@mips.UUCP> hansen@mips.UUCP (Craig Hansen) writes: >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"? If you don't have _IOSTRNG, the chances are good that you have a UNIX System V implementation, in which case look for the vprintf(3S) family of routines in your manual. They can be used to perform most tasks like those you seem interested in. If you rely on the specifics of the stdio data structures, your code will not be portable.