2 libc-extension.hh -- declare some string.h extensions
4 source file of the flowerlib
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #ifndef LIBC_EXTENSION_HH
10 #define LIBC_EXTENSION_HH
17 char *strnlwr (char *start, int n);
18 char *strnupr (char *start, int n);
20 #if ! HAVE_MEMMEM /* GNU extension. */
21 void *memmem (void const *haystack, int haystack_len,
22 void const *needle, int needle_len);
23 #endif /* HAVE_MEMMEM */
25 #if ! HAVE_SNPRINTF /* GNU extension. */
26 int snprintf (char *str, size_t n, char const *format, ...);
29 #if ! HAVE_VSNPRINTF /* GNU extension. */
30 int vsnprintf (char *str, size_t, char const *format, va_list args);
34 #if ! HAVE_ISINF /* BSD extension. */
41 unsigned char *memrchr (unsigned char const *p, int n, char c);
45 unsigned char *memrev (unsigned char *byte, int length_i);
48 double my_round (double);
50 #endif /* LIBC_EXTENSION_HH */