Wireshark
4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wsutil
ws_strptime.h
Go to the documentation of this file.
1
10
#ifndef __WS_STRPTIME_H__
11
#define __WS_STRPTIME_H__
12
13
#include <wireshark.h>
14
#include <time.h>
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
/* __cplusplus */
19
20
/* Struct to pass the "tm_gmtoff" and "tm_zone" fields, for systems whose
21
* libc struct tm type lacks these non-standard extensions. */
22
struct
ws_timezone
{
23
long
tm_gmtoff;
24
const
char
*tm_zone;
25
};
26
27
/*
28
* This is the NetBSD strptime(), modified to always use the "C" locale.
29
*/
30
WS_DLL_PUBLIC
31
char
*
32
ws_strptime(
const
char
*buf,
const
char
*format,
struct
tm *tm,
33
struct
ws_timezone
*zonep);
34
35
/*
36
* Portability wrapper around the system's strptime().
37
*/
38
WS_DLL_PUBLIC
39
char
*
40
ws_strptime_p(
const
char
*buf,
const
char
*format,
struct
tm *tm);
41
42
#ifdef __cplusplus
43
}
44
#endif
/* __cplusplus */
45
46
#endif
/* __WS_STRPTIME_H__ */
ws_timezone
Definition
ws_strptime.h:22
Generated by
1.9.8