mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Add mbuf_clear()
PUBLISHED_FROM=754b98b3000b24ad3b3d9cc0b4c480ca005a1c3f
This commit is contained in:
1 parent
3130e59244
commit
15b361fbac
4 files changed
+19
No files matched your search
@@ -1620,6 +1620,11 @@ void mbuf_remove(struct mbuf *mb, size_t n) {
|
||||
}
|
||||
}
|
||||
|
||||
void mbuf_clear(struct mbuf *mb) WEAK;
|
||||
void mbuf_clear(struct mbuf *mb) {
|
||||
mb->len = 0;
|
||||
}
|
||||
|
||||
#endif /* EXCLUDE_COMMON */
|
||||
#ifdef MG_MODULE_LINES
|
||||
#line 1 "common/mg_str.c"
|
||||
|
||||
Reference in new issue
Block a user