]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/libc-extension.hh
*** empty log message ***
[lilypond.git] / flower / include / libc-extension.hh
1 /*
2   libc-extension.hh -- declare some string.h extensions
3
4   source file of the flowerlib
5
6   (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #ifndef LIBC_EXTENSION_HH
10 #define LIBC_EXTENSION_HH
11
12 #include <cstddef>
13 #include <cstdarg>
14
15 #include "config.hh"
16 #include "flower-proto.hh"
17
18 char* strnlwr (char* start ,int n);
19 char* strnupr (char* start, int n);
20
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 */
25
26 #if !HAVE_SNPRINTF              // GNU extension.
27 int snprintf (char *str, size_t n, char const *format, ...);
28 #endif
29
30 #if !HAVE_VSNPRINTF             // GNU extension.
31 int vsnprintf (char *str, size_t, char const *format, va_list args);
32 #endif
33
34 #ifndef isinf
35 #if !HAVE_ISINF                 // BSD extension 
36 int isinf (double x);
37 #endif
38 #endif
39
40
41 Byte *memrchr (Byte const * p, int n, char c);
42 Byte *strrev (Byte* byte, int length_i);
43
44
45 double my_round (double);
46
47 #endif // LIBC_EXTENSION_HH