2 libc-extension.hh -- declare some string.h extensions
4 source file of the flowerlib
6 (c) 1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef LIBC_EXTENSION_HH
11 #define LIBC_EXTENSION_HH
13 #include "flower-proto.hh"
20 char* strnlwr (char* start ,int n);
21 char* strnupr (char* start, int n);
23 #if !HAVE_MEMMEM // GNU extension.
24 void *memmem (void const * haystack, int haystack_len,
25 void const *needle, int needle_len);
26 #endif /* HAVE_MEMMEM */
28 #if !HAVE_SNPRINTF // GNU extension.
29 int snprintf (char *str, size_t n, char const *format, ...);
32 #if !HAVE_VSNPRINTF // GNU extension.
33 int vsnprintf (char *str, size_t, char const *format, va_list args);
37 #if !HAVE_ISINF // BSD extension
44 #define lrint(__x) ((long) (round (__x)))
48 Byte *memrchr (Byte const * p, int n, char c);
49 Byte *strrev (Byte* byte, int length_i);
52 double my_round (double);
54 #endif // LIBC_EXTENSION_HH