Libecoli 0.11.1
Extensible COmmand LIne library
Loading...
Searching...
No Matches
string.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
3 */
4
11
12#pragma once
13
14#include <stdarg.h>
15#include <stdbool.h>
16#include <stddef.h>
17#include <stdint.h>
18
20size_t ec_strcmp_count(const char *s1, const char *s2);
21
23int ec_str_startswith(const char *s, const char *beginning);
24
26bool ec_str_is_space(const char *s);
27
44int ec_str_parse_llint(const char *str, unsigned int base, int64_t min, int64_t max, int64_t *val);
45
63 const char *str,
64 unsigned int base,
65 uint64_t min,
66 uint64_t max,
67 uint64_t *val
68);
69
84char *ec_str_quote(const char *str, char quote, bool force);
85
100char *ec_str_wrap(const char *str, size_t max_cols, size_t start_off);
101
int ec_str_parse_ullint(const char *str, unsigned int base, uint64_t min, uint64_t max, uint64_t *val)
size_t ec_strcmp_count(const char *s1, const char *s2)
int ec_str_startswith(const char *s, const char *beginning)
int ec_str_parse_llint(const char *str, unsigned int base, int64_t min, int64_t max, int64_t *val)
bool ec_str_is_space(const char *s)
char * ec_str_wrap(const char *str, size_t max_cols, size_t start_off)
char * ec_str_quote(const char *str, char quote, bool force)