2 libc-extension.hh -- declare some string.h extensions
4 source file of the flowerlib
6 (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #ifndef LIBC_EXTENSION_HH
10 #define LIBC_EXTENSION_HH
18 char *strnlwr (char *start, int n);
19 char *strnupr (char *start, int n);
21 #if ! HAVE_MEMMEM /* GNU extension. */
22 void *memmem (void const *haystack, int haystack_len,
23 void const *needle, int needle_len);
24 #endif /* HAVE_MEMMEM */
27 unsigned char *memrchr (unsigned char const *p, int n, char c);
31 unsigned char *memrev (unsigned char *byte, int length_i);
34 double my_round (double);
38 #if ! HAVE_SNPRINTF /* GNU extension. */
39 int snprintf (char *str, size_t n, char const *format, ...);
40 __attribute__ ((format (printf, 3, 4)));
43 #if ! HAVE_VSNPRINTF /* GNU extension. */
44 int vsnprintf (char *str, size_t, char const *format, va_list args);
48 #if ! HAVE_ISINF /* BSD extension. */
55 #endif /* LIBC_EXTENSION_HH */