Flipper Zero Firmware
Loading...
Searching...
No Matches
strint.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <stdint.h>
8#include <stddef.h>
9#include <stdbool.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
22
24StrintParseError strint_to_uint64(const char* str, char** end, uint64_t* out, uint8_t base);
25
27StrintParseError strint_to_int64(const char* str, char** end, int64_t* out, uint8_t base);
28
57StrintParseError strint_to_uint32(const char* str, char** end, uint32_t* out, uint8_t base);
58
60StrintParseError strint_to_int32(const char* str, char** end, int32_t* out, uint8_t base);
61
63StrintParseError strint_to_uint16(const char* str, char** end, uint16_t* out, uint8_t base);
64
66StrintParseError strint_to_int16(const char* str, char** end, int16_t* out, uint8_t base);
67
68#ifdef __cplusplus
69}
70#endif
StrintParseError strint_to_int64(const char *str, char **end, int64_t *out, uint8_t base)
See strint_to_uint32
StrintParseError
String to integer conversion error.
Definition strint.h:16
@ StrintParseSignError
Multiple leading + or - characters, or leading - character if the type is unsigned.
Definition strint.h:18
@ StrintParseOverflowError
Result does not fit in the requested type.
Definition strint.h:20
@ StrintParseNoError
Conversion performed successfully.
Definition strint.h:17
@ StrintParseAbsentError
No valid digits after the leading whitespace, sign and prefix.
Definition strint.h:19
StrintParseError strint_to_uint64(const char *str, char **end, uint64_t *out, uint8_t base)
See strint_to_uint32
StrintParseError strint_to_uint16(const char *str, char **end, uint16_t *out, uint8_t base)
See strint_to_uint32
StrintParseError strint_to_uint32(const char *str, char **end, uint32_t *out, uint8_t base)
Converts a string to a uint32_t
StrintParseError strint_to_int32(const char *str, char **end, int32_t *out, uint8_t base)
See strint_to_uint32
StrintParseError strint_to_int16(const char *str, char **end, int16_t *out, uint8_t base)
See strint_to_uint32