ningshuxia
昨天 71c12ff40d58c3dbdde6867396dd99224e57fc32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 ******************************************************************************
 Project:      OWA EPANET
 Version:      2.2
 Module:       util/cstr_helper.h
 Description:  Provides C string helper functions
 Authors:      see AUTHORS
 Copyright:    see AUTHORS
 License:      see LICENSE
 Last Updated: 04/02/2019
 ******************************************************************************
*/
 
#ifndef CSTR_HELPER_H_
#define CSTR_HELPER_H_
 
 
#include <stdbool.h>
 
 
#if defined(__cplusplus)
extern "C" {
#endif
 
 
int cstr_duplicate(char **dest, const char *source);
 
bool cstr_isvalid(const char *element_id);
 
bool cstr_isnullterm(const char *source);
 
 
#if defined(__cplusplus)
}
#endif
 
 
#endif /* CSTR_HELPER_H_ */