Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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
12
13#ifndef ZEPHYR_INCLUDE_SHELL_SHELL_STRING_CONV_H_
14#define ZEPHYR_INCLUDE_SHELL_SHELL_STRING_CONV_H_
15
16#include <stdbool.h>
17#include <stdint.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
27
43long shell_strtol(const char *str, int base, int *err);
44
60unsigned long shell_strtoul(const char *str, int base, int *err);
61
77unsigned long long shell_strtoull(const char *str, int base, int *err);
78
94bool shell_strtobool(const char *str, int base, int *err);
95
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif /* ZEPHYR_INCLUDE_SHELL_SHELL_STRING_CONV_H_ */
long shell_strtol(const char *str, int base, int *err)
String to long conversion with error check.
unsigned long long shell_strtoull(const char *str, int base, int *err)
String to unsigned long 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.