Wireshark
4.5.0
The Wireshark network protocol analyzer
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
Typedefs
a
b
c
d
e
f
g
h
i
m
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
e
f
h
i
n
o
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
wsutil
wmem
wmem_strutl.h
Go to the documentation of this file.
1
12
#ifndef __WMEM_STRUTL_H__
13
#define __WMEM_STRUTL_H__
14
15
#include <stdarg.h>
16
17
#include "
wmem_core.h
"
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
/* __cplusplus */
22
32
WS_DLL_PUBLIC
33
char
*
34
wmem_strdup(
wmem_allocator_t
*allocator,
const
char
*src)
35
G_GNUC_MALLOC;
36
37
#define ws_strdup(src) wmem_strdup(NULL, src)
38
39
WS_DLL_PUBLIC
40
char
*
41
wmem_strndup(
wmem_allocator_t
*allocator,
const
char
*src,
const
size_t
len)
42
G_GNUC_MALLOC;
43
44
#define ws_strndup(src, len) wmem_strndup(NULL, src, len)
45
46
WS_DLL_PUBLIC
47
char
*
48
wmem_strdup_printf(
wmem_allocator_t
*allocator,
const
char
*fmt, ...)
49
G_GNUC_MALLOC G_GNUC_PRINTF(2, 3);
50
51
#define ws_strdup_printf(...) wmem_strdup_printf(NULL, __VA_ARGS__)
52
53
WS_DLL_PUBLIC
54
char
*
55
wmem_strdup_vprintf(
wmem_allocator_t
*allocator,
const
char
*fmt, va_list ap)
56
G_GNUC_MALLOC;
57
58
#define ws_strdup_vprintf(fmt, ap) wmem_strdup_vprintf(NULL, fmt, ap)
59
71
WS_DLL_PUBLIC
72
const
uint8_t *
ws_memmem
(
const
void
*haystack,
size_t
haystack_len,
73
const
void
*needle,
size_t
needle_len);
74
78
#ifdef __cplusplus
79
}
80
#endif
/* __cplusplus */
81
82
#endif
/* __WMEM_STRUTL_H__ */
83
84
/*
85
* Editor modelines - https://www.wireshark.org/tools/modelines.html
86
*
87
* Local variables:
88
* c-basic-offset: 4
89
* tab-width: 8
90
* indent-tabs-mode: nil
91
* End:
92
*
93
* vi: set shiftwidth=4 tabstop=8 expandtab:
94
* :indentSize=4:tabSize=8:noTabs=true:
95
*/
ws_memmem
WS_DLL_PUBLIC const uint8_t * ws_memmem(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len)
Definition
wmem_strutl.c:117
_wmem_allocator_t
Definition
wmem_allocator.h:27
wmem_core.h
Generated by
1.9.8