#!/bin/sh
# $Id: scanf_test,v 1.2 2000/09/05 13:42:53 mdw Exp $
# echo's %p if RTL supports it, %x if it is equivalent, or fails if neither
# works.

test=`./scanf_ansi %p`
if [ "$test" = "Hello World!" ] ; then
   echo \"%p\"
   exit 0
fi
rm -f core

test=`./scanf_ansi %x`
if [ "$test" = "Hello World!" ] ; then
   echo \"%x\"
   exit 0
fi
rm -f core

echo 'Tell me how to convert pointers to and from printable characters!' 1>&2
exit 1

