cechew@bruce.OZ (Earl Chew) (09/04/89)
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of archive 7 (of 7)."
# Contents: vprintf.c vscanf.c vsprintf.c vsscanf.c
# Wrapped by cechew@bruce on Mon Sep 4 12:50:20 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'vprintf.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vprintf.c'\"
else
echo shar: Extracting \"'vprintf.c'\" \(333 characters\)
sed "s/^X//" >'vprintf.c' <<'END_OF_FILE'
X/* v p r i n t f
X *
X * This function provides the same functionality as printf except
X * that it uses varargs.h.
X *
X * Patchlevel 1.0
X *
X * Edit History:
X */
X
X#include "stdiolib.h"
X
X/*LINTLIBRARY*/
X
Xint vprintf(fmt, args)
X
Xchar *fmt; /* format */
Xva_list args; /* argument list */
X
X{
X return vfprintf(stdout, fmt, args);
X}
END_OF_FILE
if test 333 -ne `wc -c <'vprintf.c'`; then
echo shar: \"'vprintf.c'\" unpacked with wrong size!
fi
# end of 'vprintf.c'
fi
if test -f 'vscanf.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vscanf.c'\"
else
echo shar: Extracting \"'vscanf.c'\" \(327 characters\)
sed "s/^X//" >'vscanf.c' <<'END_OF_FILE'
X/* v s c a n f
X *
X * This function provides the same functionality as scanf except
X * that it uses varargs.h.
X *
X * Patchlevel 1.0
X *
X * Edit History:
X */
X
X#include "stdiolib.h"
X
X/*LINTLIBRARY*/
X
Xint vscanf(fmt, args)
X
Xchar *fmt; /* format */
Xva_list args; /* argument list */
X
X{
X return vfscanf(stdin, fmt, args);
X}
END_OF_FILE
if test 327 -ne `wc -c <'vscanf.c'`; then
echo shar: \"'vscanf.c'\" unpacked with wrong size!
fi
# end of 'vscanf.c'
fi
if test -f 'vsprintf.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vsprintf.c'\"
else
echo shar: Extracting \"'vsprintf.c'\" \(653 characters\)
sed "s/^X//" >'vsprintf.c' <<'END_OF_FILE'
X/* v s p r i n t f
X *
X * This function provides the same functionality as sprintf except
X * that it uses varargs.h.
X *
X * Patchlevel 1.0
X *
X * Edit History:
X * 03-Sep-1989 Changed to PUTC() since no chance of line buffering.
X */
X
X#include "stdiolib.h"
X
X/*LINTLIBRARY*/
X
Xint vsprintf(buf, fmt, args)
X
Xchar *buf; /* output buffer */
Xchar *fmt; /* format */
Xva_list args; /* argument list */
X
X{
X int v; /* return value */
X FILE f; /* temporary file */
X
X f._flag = _IOWRITE | _IOSTRING;
X f._base = (unsigned char *) buf;
X f._bufsiz = 0;
X
X INITWRITEBUFFER(&f);
X
X v = vfprintf(&f, fmt, args);
X (void) PUTC(0, &f);
X
X return v;
X}
END_OF_FILE
if test 653 -ne `wc -c <'vsprintf.c'`; then
echo shar: \"'vsprintf.c'\" unpacked with wrong size!
fi
# end of 'vsprintf.c'
fi
if test -f 'vsscanf.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'vsscanf.c'\"
else
echo shar: Extracting \"'vsscanf.c'\" \(582 characters\)
sed "s/^X//" >'vsscanf.c' <<'END_OF_FILE'
X/* v s s c a n f
X *
X * This function provides the same functionality as sscanf except
X * that it uses varargs.h.
X *
X * Patchlevel 1.0
X *
X * Edit History:
X */
X
X#include "stdiolib.h"
X
X/*LINTLIBRARY*/
X
Xint vsscanf(buf, fmt, args)
X
Xchar *buf; /* output buffer */
Xchar *fmt; /* format */
Xva_list args; /* argument list */
X
X{
X FILE f; /* temporary file */
X int strlen(); /* get length of string */
X
X f._flag = _IOREAD | _IOSTRING;
X f._base = (unsigned char *) buf;
X f._bufsiz = strlen(buf);
X
X INITREADBUFFER(&f, f._bufsiz);
X
X return vfscanf(&f, fmt, args);
X}
END_OF_FILE
if test 582 -ne `wc -c <'vsscanf.c'`; then
echo shar: \"'vsscanf.c'\" unpacked with wrong size!
fi
# end of 'vsscanf.c'
fi
echo shar: End of archive 7 \(of 7\).
cp /dev/null ark7isdone
MISSING=""
for I in 1 2 3 4 5 6 7 ; do
if test ! -f ark${I}isdone ; then
MISSING="${MISSING} ${I}"
fi
done
if test "${MISSING}" = "" ; then
echo You have unpacked all 7 archives.
rm -f ark[1-9]isdone
else
echo You still need to unpack the following archives:
echo " " ${MISSING}
fi
## End of shell archive.
exit 0