s3: smbd: Deliberately currupt an uninitialized pointer.
[Samba.git] / lib / util / smb_strtox.h
blobfcbedbe6e811c25ec4001f7742bc1c0206cd1f82
1 /*
2 * Unix SMB/CIFS implementation.
4 * Copyright (C) Swen Schillig 2019
6 * ** NOTE! The following LGPL license applies to this file.
7 * ** This does NOT imply that all of Samba is released
8 * ** under the LGPL
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 3 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
24 #ifndef SMB_STRTOX_H
25 #define SMB_STRTOX_H
27 #define SMB_STR_STANDARD 0x00
28 #define SMB_STR_ALLOW_NEGATIVE 0x01
29 #define SMB_STR_FULL_STR_CONV 0x02
30 #define SMB_STR_ALLOW_NO_CONVERSION 0x04
31 #define SMB_STR_GLIBC_STANDARD (SMB_STR_ALLOW_NO_CONVERSION | \
32 SMB_STR_ALLOW_NEGATIVE)
34 unsigned long int
35 smb_strtoul(const char *nptr, char **endptr, int base, int *err, int flags);
37 unsigned long long int
38 smb_strtoull(const char *nptr, char **endptr, int base, int *err, int flags);
40 #endif