]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/libc-extension.hh
* flower/memory-stream.cc (Memory_out_stream): remove fopencookie support.
[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 <stddef.h>
13 #include <stdarg.h>
14
15 #include "config.hh"
16
17 char *strnlwr (char *start, int n);
18 char *strnupr (char *start, int n);
19
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 */
24
25 #if ! HAVE_SNPRINTF             /* GNU extension. */
26 int snprintf (char *str, size_t n, char const *format, ...);
27 #endif
28
29 #if ! HAVE_VSNPRINTF            /* GNU extension. */
30 int vsnprintf (char *str, size_t, char const *format, va_list args);
31 #endif
32
33 #ifndef isinf
34 #if ! HAVE_ISINF                /* BSD extension. */
35 int isinf (double x);
36 #endif
37 #endif
38
39
40 #if ! HAVE_MEMRCHR
41 unsigned char *memrchr (unsigned char const *p, int n, char c);
42 #endif
43
44 #if ! HAVE_MEMREV
45 unsigned char *memrev (unsigned char *byte, int length_i);
46 #endif
47
48 double my_round (double);
49
50 #endif /* LIBC_EXTENSION_HH */