1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
10 /* count the number of identical chars at the beginning of 2 strings */
11 size_t ec_strcmp_count(const char *s1, const char *s2);
13 /* return 1 if 's' starts with 'beginning' */
14 int ec_str_startswith(const char *s, const char *beginning);
16 /* like asprintf, but use libecoli allocator */
17 int ec_asprintf(char **buf, const char *fmt, ...);
19 /* like vasprintf, but use libecoli allocator */
20 int ec_vasprintf(char **buf, const char *fmt, va_list ap);