1 // SPDX-License-Identifier: GPL-2.0-only
7 #if __has_attribute(__fallthrough__)
8 # define fallthrough __attribute__((__fallthrough__))
10 # define fallthrough do {} while (0) /* fallthrough */
13 unsigned long long memparse(const char *ptr
, char **retptr
)
15 char *endptr
; /* local pointer to end of parsed string */
17 unsigned long long ret
= strtoll(ptr
, &endptr
, 0);