URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
#include <string.h>
|
#include <string.h>
|
|
|
static int
|
static int
|
special_format (fmt)
|
special_format (fmt)
|
const char *fmt;
|
const char *fmt;
|
{
|
{
|
return (strchr (fmt, '*') != 0
|
return (strchr (fmt, '*') != 0
|
|| strchr (fmt, 'V') != 0
|
|| strchr (fmt, 'V') != 0
|
|| strchr (fmt, 'S') != 0
|
|| strchr (fmt, 'S') != 0
|
|| strchr (fmt, 'n') != 0);
|
|| strchr (fmt, 'n') != 0);
|
}
|
}
|
|
|
main()
|
main()
|
{
|
{
|
if (special_format ("ee"))
|
if (special_format ("ee"))
|
abort ();
|
abort ();
|
if (!special_format ("*e"))
|
if (!special_format ("*e"))
|
abort ();
|
abort ();
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.