1 ?RCS: $Id: sunscanf.U,v 3.0 1993/08/18 12:09:54 ram Exp $
3 ?RCS: Copyright (c) 1991-1993, 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 3.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 Compile Myread 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 /**/
29 : check to see what kinda scanf your using.
31 echo "Checking to see what flavor of scanf you have..." >&4
32 $cat >scanf.c <<'EOCP'
37 sscanf("4.5","%g",&value);
38 printf("%d\n", value == 4.5);
42 if eval $compile_ok; then
43 if $test `./scanf` = 0; then
44 echo "Hmm.. seems you are not running the USG flavor.."
47 echo "Uh... you are running the USG flavor of scanf."
51 echo "(I can't seem to compile the test program... Guessing)"