tscanf1.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1999-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#include "sftest.h"
/* test to see sfvscanf still works ok with a discipline that
** returns one byte at a time.
*/
typedef struct _mydisc_s
{
Sfio_t* f;
} Mydisc_t;
#if __STD_C
#else
Sfio_t* f;
#endif
{
if(!f || size <= 0)
return -1;
}
tmain()
{
int n;
double d;
int i;
char s[10];
terror("Bad scanning %d", n);
terror("Bad scanned values ");
terror("Can't create stream f");
terror("Can't open string stream str");
s[0] = 0; i = 0; d = 0;
terror("Bad scanning %d", n);
terror("Bad scanned values2");
return 0;
}