Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
17extern "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. */
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 */
30WS_DLL_PUBLIC
31char *
32ws_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 */
38WS_DLL_PUBLIC
39char *
40ws_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__ */
Definition ws_strptime.h:22