Zephyr Project API  3.2.0
A Scalable Open Source RTOS
shell_string_conv.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef SHELL_STRING_CONV_H__
8#define SHELL_STRING_CONV_H__
9
10#include <stdint.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
31long shell_strtol(const char *str, int base, int *err);
32
48unsigned long shell_strtoul(const char *str, int base, int *err);
49
65bool shell_strtobool(const char *str, int base, int *err);
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* SHELL_STRING_CONV_H__ */
long shell_strtol(const char *str, int base, int *err)
String to long conversion with error check.
bool shell_strtobool(const char *str, int base, int *err)
String to boolean conversion with error check.
unsigned long shell_strtoul(const char *str, int base, int *err)
String to unsigned long conversion with error check.