Home
last modified time | relevance | path

Searched refs:endptr (Results 1 – 22 of 22) sorted by relevance

/Zephyr-Core-2.7.6/subsys/shell/modules/
Ddate_service.c35 char *endptr; in get_y_m_d() local
37 endptr = NULL; in get_y_m_d()
38 year = strtol(date_str, &endptr, 10); in get_y_m_d()
39 if ((endptr == date_str) || (*endptr != '-')) { in get_y_m_d()
43 date_str = endptr + 1; in get_y_m_d()
45 endptr = NULL; in get_y_m_d()
46 month = strtol(date_str, &endptr, 10); in get_y_m_d()
47 if ((endptr == date_str) || (*endptr != '-')) { in get_y_m_d()
56 date_str = endptr + 1; in get_y_m_d()
58 endptr = NULL; in get_y_m_d()
[all …]
/Zephyr-Core-2.7.6/boards/posix/native_posix/
Dcmdline_common.c124 char *endptr = NULL; in cmd_read_option_value() local
130 endptr = (char *)str + 5; in cmd_read_option_value()
133 endptr = (char *)str + 1; in cmd_read_option_value()
136 endptr = (char *)str + 4; in cmd_read_option_value()
139 endptr = (char *)str + 1; in cmd_read_option_value()
146 endptr = (char *)str + strlen(str); in cmd_read_option_value()
149 *(uint32_t *)dest = strtoul(str, &endptr, 0); in cmd_read_option_value()
152 *(uint64_t *)dest = strtoull(str, &endptr, 0); in cmd_read_option_value()
155 *(int32_t *)dest = strtol(str, &endptr, 0); in cmd_read_option_value()
158 *(int64_t *)dest = strtoll(str, &endptr, 0); in cmd_read_option_value()
[all …]
/Zephyr-Core-2.7.6/lib/libc/minimal/source/stdlib/
Dstrtoul.c46 unsigned long strtoul(const char *nptr, char **endptr, register int base) in strtoul() argument
105 if (endptr != NULL) { in strtoul()
106 *endptr = (char *)(any ? s - 1 : nptr); in strtoul()
Dstrtol.c45 long strtol(const char *nptr, char **endptr, register int base) in strtol() argument
126 if (endptr != NULL) { in strtol()
127 *endptr = (char *)(any ? s - 1 : nptr); in strtol()
/Zephyr-Core-2.7.6/drivers/modem/
Dmodem_shell.c106 char *endptr; in cmd_modem_send() local
117 i = (int)strtol(argv[arg], &endptr, 10); in cmd_modem_send()
118 if (*endptr != '\0') { in cmd_modem_send()
188 char *endptr; in cmd_modem_info() local
199 i = (int)strtol(argv[arg], &endptr, 10); in cmd_modem_info()
200 if (*endptr != '\0') { in cmd_modem_info()
Dgsm_ppp.c114 char *endptr; in modem_atoi() local
116 ret = (int)strtol(s, &endptr, 10); in modem_atoi()
117 if (!endptr || *endptr != '\0') { in modem_atoi()
Dquectel-bg9x.c73 char *endptr; in modem_atoi() local
75 ret = (int)strtol(s, &endptr, 10); in modem_atoi()
76 if (!endptr || *endptr != '\0') { in modem_atoi()
Dublox-sara-r4.c213 char *endptr; in modem_atoi() local
215 ret = (int)strtol(s, &endptr, 10); in modem_atoi()
216 if (!endptr || *endptr != '\0') { in modem_atoi()
/Zephyr-Core-2.7.6/drivers/flash/
Dflash_shell.c33 char *endptr; in parse_helper() local
35 *addr = strtoul((*argv)[1], &endptr, 16); in parse_helper()
36 *flash_dev = device_get_binding((*endptr != '\0') ? (*argv)[1] : in parse_helper()
42 if (*endptr == '\0') { in parse_helper()
49 *addr = strtoul((*argv)[2], &endptr, 16); in parse_helper()
/Zephyr-Core-2.7.6/lib/libc/minimal/include/
Dstdlib.h19 unsigned long strtoul(const char *nptr, char **endptr, int base);
20 long strtol(const char *nptr, char **endptr, int base);
/Zephyr-Core-2.7.6/drivers/wifi/esp_at/
Desp_offload.c417 char *endptr; in cmd_ciprecvdata_parse() local
430 *data_len = strtol(&cmd_buf[len], &endptr, 10); in cmd_ciprecvdata_parse()
431 if (endptr == &cmd_buf[len] || in cmd_ciprecvdata_parse()
432 (*endptr == 0 && match_len >= CIPRECVDATA_CMD_MAX_LEN) || in cmd_ciprecvdata_parse()
436 } else if (*endptr == 0) { in cmd_ciprecvdata_parse()
438 } else if (*endptr != _CIPRECVDATA_END) { in cmd_ciprecvdata_parse()
439 LOG_ERR("Invalid end of cmd: 0x%02x != 0x%02x", *endptr, in cmd_ciprecvdata_parse()
445 *data_offset = (endptr - cmd_buf) + 1; in cmd_ciprecvdata_parse()
452 *endptr = 0; in cmd_ciprecvdata_parse()
Desp.c537 char *endptr, ipd_buf[MAX_IPD_LEN + 1]; in cmd_ipd_parse_hdr() local
559 *data_len = strtol(&ipd_buf[len + 3], &endptr, 10); in cmd_ipd_parse_hdr()
561 if (endptr == &ipd_buf[len + 3] || in cmd_ipd_parse_hdr()
562 (*endptr == 0 && match_len >= MAX_IPD_LEN)) { in cmd_ipd_parse_hdr()
565 } else if (*endptr == 0) { in cmd_ipd_parse_hdr()
569 *end = *endptr; in cmd_ipd_parse_hdr()
570 *data_offset = (endptr - ipd_buf) + 1; in cmd_ipd_parse_hdr()
/Zephyr-Core-2.7.6/subsys/net/ip/
Dutils.c336 char *endptr; in z_impl_net_addr_pton() local
338 addr->s4_addr[i] = strtol(src, &endptr, 10); in z_impl_net_addr_pton()
340 src = ++endptr; in z_impl_net_addr_pton()
634 char *endptr; in convert_port() local
636 tmp = strtoul(buf, &endptr, 10); in convert_port()
637 if ((endptr == buf && tmp == 0) || in convert_port()
638 !(*buf != '\0' && *endptr == '\0') || in convert_port()
862 char *endptr; in net_bytes_from_str() local
876 buf[i] = strtol(src, &endptr, 16); in net_bytes_from_str()
877 src = ++endptr; in net_bytes_from_str()
Dnet_shell.c3232 char *endptr; in cmd_net_gptp_port() local
3242 port = strtol(argv[arg], &endptr, 10); in cmd_net_gptp_port()
3244 if (*endptr == '\0') { in cmd_net_gptp_port()
3322 char *endptr; in get_iface_idx() local
3330 idx = strtol(index_str, &endptr, 10); in get_iface_idx()
3331 if (*endptr != '\0') { in get_iface_idx()
4094 char *endptr; in parse_arg() local
4106 res = strtol(str, &endptr, 10); in parse_arg()
4108 if (errno || (endptr == str)) { in parse_arg()
4569 char *endptr; in cmd_net_stats_iface() local
[all …]
/Zephyr-Core-2.7.6/drivers/sensor/
Dsensor_shell.c84 char *endptr; in handle_channel_by_name() local
89 i = strtoul(channel_name, &endptr, 0); in handle_channel_by_name()
91 if (*endptr != '\0') { in handle_channel_by_name()
/Zephyr-Core-2.7.6/samples/net/civetweb/common/include/
Dlibc_extensions.h29 long long strtoll(const char *str, char **endptr, int base);
32 unsigned long long strtoull(const char *str, char **endptr, int base);
/Zephyr-Core-2.7.6/subsys/net/l2/ethernet/
Dbridge_shell.c16 char *endptr; in get_idx() local
19 idx = strtol(index_str, &endptr, 10); in get_idx()
20 if (*endptr != '\0') { in get_idx()
/Zephyr-Core-2.7.6/subsys/net/l2/wifi/
Dwifi_shell.c151 char *endptr; in __wifi_args_to_params() local
164 params->channel = strtol(argv[idx], &endptr, 10); in __wifi_args_to_params()
165 if (*endptr != '\0') { in __wifi_args_to_params()
/Zephyr-Core-2.7.6/samples/net/promiscuous_mode/src/
Dmain.c159 char *endptr; in set_promisc_mode() local
167 idx = strtol(argv[1], &endptr, 10); in set_promisc_mode()
/Zephyr-Core-2.7.6/samples/net/civetweb/common/src/
Dlibc_extensions.c156 long long strtoll(const char *str, char **endptr, int base) in strtoll() argument
159 return (long long)strtol(str, endptr, base); in strtoll()
/Zephyr-Core-2.7.6/lib/os/
Djson.c396 char *endptr; in decode_num() local
403 *num = strtol(token->start, &endptr, 10); in decode_num()
411 if (endptr != token->end) { in decode_num()
/Zephyr-Core-2.7.6/subsys/mgmt/hawkbit/
Dhawkbit.c409 char *helper, *endptr; in hawkbit_find_cancelAction_base() local
446 hb_context.action_id = strtol(helper, &endptr, 10); in hawkbit_find_cancelAction_base()
502 char *endptr; in hawkbit_parse_deployment() local
509 hb_context.action_id = strtol(res->id, &endptr, 10); in hawkbit_parse_deployment()