]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/libc-extension.hh
release: 1.0.1
[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--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef LIBC_EXTENSION_HH
11 #define LIBC_EXTENSION_HH
12
13 #include "fproto.hh"
14 #include "config.hh"
15 #include <cstddef>
16 #include <stdarg.h>
17
18 char* strnlwr (char* start_l ,int n);
19 char* strnupr (char* start_l, int n);
20
21 #if !HAVE_MEMMEM                // GNU extension.
22 Byte *memmem (Byte const * haystack, int haystack_len,
23              Byte 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
35 Byte *memrchr (Byte const * p, int n, char c);
36 Byte *strrev (Byte* byte_l, int length_i);
37
38
39 #endif // LIBC_EXTENSION_HH