3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic License,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic License; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
11 ?RCS: $Log: sunscanf.U,v $
12 ?RCS: Revision 3.0 1993/08/18 12:09:54 ram
13 ?RCS: Baseline for dist 3.0 netwide release.
15 ?MAKE:sunscanf: cat rm Myread +cc +ccflags test Setvar
16 ?MAKE: -pick add $@ %<
18 ?S: This variable is set if this system runs with the Sun version
22 ?C: This variable is set if this system runs with the Sun version
25 ?H:#$sunscanf SUNSCANF /**/
28 : check to see what kinda scanf your using.
30 echo "Checking to see what flavor of scanf you have..." >&4
31 $cat >scanf.c <<'EOCP'
36 sscanf("4.5","%g",&value);
37 printf("%d\n", value == 4.5);
40 if $cc $ccflags -o scanf scanf.c >/dev/null 2>&1 ; then
41 if $test `scanf` = 0; then
42 echo "Hmm.. seems your not running the USG flavor.."
45 echo "Uh... your running the USG flavor of scanf."
49 echo "(I can't seem to compile the test program... Guessing)"