update epan/dissectors/pidl/drsuapi/drsuapi.idl from samba
[wireshark-sm.git] / wsutil / ws_strptime.h
blob0eb0c56a0731bb1247b3bb226525c387720e9a87
1 /** @file
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #ifndef __WS_STRPTIME_H__
11 #define __WS_STRPTIME_H__
13 #include <wireshark.h>
14 #include <time.h>
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
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;
28 * This is the NetBSD strptime(), modified to always use the "C" locale.
30 WS_DLL_PUBLIC
31 char *
32 ws_strptime(const char *buf, const char *format, struct tm *tm,
33 struct ws_timezone *zonep);
36 * Portability wrapper around the system's strptime().
38 WS_DLL_PUBLIC
39 char *
40 ws_strptime_p(const char *buf, const char *format, struct tm *tm);
42 #ifdef __cplusplus
44 #endif /* __cplusplus */
46 #endif /* __WS_STRPTIME_H__ */