Zephyr API Documentation 4.0.0-rc3
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
7#ifndef ZEPHYR_INCLUDE_SHELL_STRING_CONV_H_
8#define ZEPHYR_INCLUDE_SHELL_STRING_CONV_H_
9
10#include <stdbool.h>
11#include <stdint.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
32long shell_strtol(const char *str, int base, int *err);
33
49unsigned long shell_strtoul(const char *str, int base, int *err);
50
66unsigned long long shell_strtoull(const char *str, int base, int *err);
67
83bool shell_strtobool(const char *str, int base, int *err);
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif /* ZEPHYR_INCLUDE_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.