2020-11-26 01:25:22 -08:00
|
|
|
/**
|
2019-04-26 08:20:30 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* \section COPYRIGHT
|
2019-04-26 08:20:30 -07:00
|
|
|
*
|
2021-03-19 03:45:56 -07:00
|
|
|
* Copyright 2013-2021 Software Radio Systems Limited
|
2019-04-26 08:20:30 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* By using this file, you agree to the terms and conditions set
|
|
|
|
* forth in the LICENSE file which can be found at the top level of
|
|
|
|
* the distribution.
|
2019-04-26 08:20:30 -07:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2014-04-23 02:33:19 -07:00
|
|
|
#ifdef CHECK_FUNCTION_EXISTS
|
|
|
|
|
2014-11-05 05:19:35 -08:00
|
|
|
char CHECK_FUNCTION_EXISTS();
|
2014-04-23 02:33:19 -07:00
|
|
|
#ifdef __CLASSIC_C__
|
2019-12-16 07:04:22 -08:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
int ac;
|
|
|
|
char* av[];
|
2014-04-23 02:33:19 -07:00
|
|
|
#else
|
2019-12-16 07:04:22 -08:00
|
|
|
int main(int ac, char* av[])
|
|
|
|
{
|
|
|
|
|
2014-04-23 02:33:19 -07:00
|
|
|
#endif
|
|
|
|
float ac2 = sqrtf(rand());
|
|
|
|
CHECK_FUNCTION_EXISTS();
|
2019-12-16 07:04:22 -08:00
|
|
|
if (ac2 * ac > 1000) {
|
2014-04-23 02:33:19 -07:00
|
|
|
return *av[0];
|
2019-12-16 07:04:22 -08:00
|
|
|
}
|
2014-04-23 02:33:19 -07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
#else /* CHECK_FUNCTION_EXISTS */
|
2014-04-23 02:33:19 -07:00
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
#error "CHECK_FUNCTION_EXISTS has to specify the function"
|
2014-04-23 02:33:19 -07:00
|
|
|
|
|
|
|
#endif /* CHECK_FUNCTION_EXISTS */
|