#include <ctype.h>
#include "libc-extension.hh"
-/*
- urg: why soo wierd?
- */
char*
strnlwr (char* start ,int n)
{
}
+#if ! HAVE_LRINT
+#define lrint(__x) ((long) (round (__x)
+#endif
+
+
+#if !HAVE_ISINF
+int
+isinf (double x)
+{
+ return x && ( x == x/ 2) ;
+}
+#endif
+
+
#if !HAVE_MEMMEM
/** locate a substring. #memmem# finds the first occurrence of
if (*subneedle++ != *subhaystack++)
goto next;
- // completed the needle. Gotcha.
+ /* Completed the needle. Gotcha. */
return (Byte *) haystack;
next:
haystack++;
return byte;
}
-#if ! HAVE_LRINT
-#define lrint(__x) ((long)(double) __x)
-#endif
-
#if ! HAVE_SNPRINTF
int
snprintf (char *str, size_t, char const *format, ...)
return i;
}
#endif
-
-
-#if !HAVE_ISINF
-int
-isinf (double x)
-{
- return x && ( x == x/ 2) ;
-}
-
-#endif