Mercurial > libedl
annotate include/util.h @ 13:41b74137e201
include: make header guards sane
double underscores are reserved to the implementation by
the C standard
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 03 Apr 2024 20:48:51 -0400 |
parents | 0c98b46eaf73 |
children |
rev | line source |
---|---|
13
41b74137e201
include: make header guards sane
Paper <paper@paper.us.eu.org>
parents:
8
diff
changeset
|
1 #ifndef EDL_INTERNAL_UTIL_H_ |
41b74137e201
include: make header guards sane
Paper <paper@paper.us.eu.org>
parents:
8
diff
changeset
|
2 #define EDL_INTERNAL_UTIL_H_ |
8
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
3 |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
4 #include <stddef.h> |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
5 |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
6 size_t EDL_internal_strnlen(const char* s, size_t maxlen); |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
7 char* EDL_internal_strnchr(const char* haystack, char needle, size_t length); |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
8 char* EDL_internal_strdup(const char* s); |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
9 |
13
41b74137e201
include: make header guards sane
Paper <paper@paper.us.eu.org>
parents:
8
diff
changeset
|
10 #endif /* EDL_INTERNAL_UTIL_H_ */ |