Home
last modified time | relevance | path

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

12

/Zephyr-Core-3.7.0/subsys/shell/modules/
Ddate_service.c41 char *endptr; in get_y_m_d() local
43 endptr = NULL; in get_y_m_d()
44 year = strtol(date_str, &endptr, 10); in get_y_m_d()
45 if ((endptr == date_str) || (*endptr != '-')) { in get_y_m_d()
49 date_str = endptr + 1; in get_y_m_d()
51 endptr = NULL; in get_y_m_d()
52 month = strtol(date_str, &endptr, 10); in get_y_m_d()
53 if ((endptr == date_str) || (*endptr != '-')) { in get_y_m_d()
62 date_str = endptr + 1; in get_y_m_d()
64 endptr = NULL; in get_y_m_d()
[all …]
/Zephyr-Core-3.7.0/subsys/sip_svc/
Dsip_svc_shell.c68 char *endptr; in cmd_unreg() local
76 c_token = strtoul(argv[2], &endptr, 16); in cmd_unreg()
80 } else if (errno || endptr == argv[2] || *endptr) { in cmd_unreg()
103 char *endptr; in cmd_open() local
112 c_token = strtoul(argv[2], &endptr, 16); in cmd_open()
116 } else if (errno || endptr == argv[2] || *endptr) { in cmd_open()
123 mseconds = strtoul(argv[3], &endptr, 10); in cmd_open()
127 } else if (errno || endptr == argv[3] || *endptr) { in cmd_open()
156 char *endptr; in cmd_close() local
164 c_token = strtoul(argv[2], &endptr, 16); in cmd_close()
[all …]
Dsip_svc_agilex_mailbox_shell.c81 char *endptr; in cmd_open() local
91 mseconds = strtoul(argv[1], &endptr, 10); in cmd_open()
95 } else if (errno || endptr == argv[1] || *endptr) { in cmd_open()
209 char *endptr; in parse_mb_data() local
231 hex_val = strtoul(hex_str, &endptr, 16); in parse_mb_data()
236 } else if (errno || endptr == hex_str || *endptr) { in parse_mb_data()
260 char *resp_addr, *endptr; in cmd_send() local
277 msecond = strtoul(argv[2], &endptr, 10); in cmd_send()
281 } else if (errno || endptr == argv[2] || *endptr) { in cmd_send()
/Zephyr-Core-3.7.0/boards/native/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-3.7.0/scripts/native_simulator/native/src/
Dnsi_cmdline_common.c126 char *endptr = NULL; in nsi_cmd_read_option_value() local
132 endptr = (char *)str + 5; in nsi_cmd_read_option_value()
135 endptr = (char *)str + 1; in nsi_cmd_read_option_value()
138 endptr = (char *)str + 4; in nsi_cmd_read_option_value()
141 endptr = (char *)str + 1; in nsi_cmd_read_option_value()
148 endptr = (char *)str + strlen(str); in nsi_cmd_read_option_value()
151 *(uint32_t *)dest = strtoul(str, &endptr, 0); in nsi_cmd_read_option_value()
154 *(uint64_t *)dest = strtoull(str, &endptr, 0); in nsi_cmd_read_option_value()
157 *(int32_t *)dest = strtol(str, &endptr, 0); in nsi_cmd_read_option_value()
160 *(int64_t *)dest = strtoll(str, &endptr, 0); in nsi_cmd_read_option_value()
[all …]
/Zephyr-Core-3.7.0/drivers/can/
Dcan_shell.c436 char *endptr; in cmd_can_bitrate_set() local
444 bitrate = (uint32_t)strtoul(argv[2], &endptr, 10); in cmd_can_bitrate_set()
445 if (*endptr != '\0') { in cmd_can_bitrate_set()
451 sample_pnt = (uint32_t)strtoul(argv[3], &endptr, 10); in cmd_can_bitrate_set()
452 if (*endptr != '\0') { in cmd_can_bitrate_set()
467 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_bitrate_set()
468 if (*endptr != '\0') { in cmd_can_bitrate_set()
507 char *endptr; in cmd_can_dbitrate_set() local
515 bitrate = (uint32_t)strtoul(argv[2], &endptr, 10); in cmd_can_dbitrate_set()
516 if (*endptr != '\0') { in cmd_can_dbitrate_set()
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/shell/
Dvlan.c99 char *endptr; in cmd_net_vlan_add() local
108 tag = strtol(argv[arg], &endptr, 10); in cmd_net_vlan_add()
109 if (*endptr != '\0') { in cmd_net_vlan_add()
119 iface_idx = strtol(argv[arg], &endptr, 10); in cmd_net_vlan_add()
120 if (*endptr != '\0') { in cmd_net_vlan_add()
171 char *endptr; in cmd_net_vlan_del() local
180 tag = strtol(argv[arg], &endptr, 10); in cmd_net_vlan_del()
181 if (*endptr != '\0') { in cmd_net_vlan_del()
Dudp.c64 char *endptr = NULL; in cmd_net_udp_bind()
78 port = strtol(argv[2], &endptr, 0); in cmd_net_udp_bind()
80 if (endptr == argv[2]) { in cmd_net_udp_bind()
190 char *endptr = NULL; in cmd_net_udp_send()
205 port = strtol(argv[2], &endptr, 0); in cmd_net_udp_send()
208 if (endptr == argv[2]) { in cmd_net_udp_send()
Dnet_shell.c28 char *endptr; in get_iface_idx() local
36 idx = strtol(index_str, &endptr, 10); in get_iface_idx()
37 if (*endptr != '\0') { in get_iface_idx()
Dping.c204 char *endptr; in parse_arg() local
217 res = strtol(str, &endptr, 16); in parse_arg()
219 res = strtol(str, &endptr, 10); in parse_arg()
222 if (errno || (endptr == str)) { in parse_arg()
Dtcp.c264 char *endptr; in cmd_net_tcp_connect() local
286 port = strtol(argv[arg], &endptr, 10); in cmd_net_tcp_connect()
287 if (*endptr != '\0') { in cmd_net_tcp_connect()
/Zephyr-Core-3.7.0/lib/libc/minimal/include/
Dstdlib.h21 unsigned long strtoul(const char *nptr, char **endptr, int base);
22 long strtol(const char *nptr, char **endptr, int base);
23 unsigned long long strtoull(const char *nptr, char **endptr, int base);
24 long long strtoll(const char *nptr, char **endptr, int base);
/Zephyr-Core-3.7.0/drivers/audio/
Dcodec_shell.c61 char *endptr; in parse_named_int() local
65 i = strtoul(name, &endptr, 0); in parse_named_int()
66 if (*endptr == '\0') { in parse_named_int()
114 char *endptr; in cmd_set_prop() local
137 value = strtol(argv[args_indx.value], &endptr, 0); in cmd_set_prop()
138 if (*endptr != '\0') { in cmd_set_prop()
/Zephyr-Core-3.7.0/drivers/modem/
Dmodem_shell.c107 char *endptr; in cmd_modem_send() local
118 i = (int)strtol(argv[arg], &endptr, 10); in cmd_modem_send()
119 if (*endptr != '\0') { in cmd_modem_send()
159 char *endptr; in cmd_modem_info() local
170 i = (int)strtol(argv[arg], &endptr, 10); in cmd_modem_info()
171 if (*endptr != '\0') { in cmd_modem_info()
/Zephyr-Core-3.7.0/lib/libc/minimal/source/stdlib/
Dstrtoul.c43 unsigned long strtoul(const char *nptr, char **endptr, register int base) in strtoul() argument
102 if (endptr != NULL) { in strtoul()
103 *endptr = (char *)(any ? (s - 1) : nptr); in strtoul()
Dstrtoull.c43 unsigned long long strtoull(const char *nptr, char **endptr, register int base) in strtoull() argument
101 if (endptr != NULL) { in strtoull()
102 *endptr = (char *)(any ? (char *)s - 1 : nptr); in strtoull()
Dstrtol.c43 long strtol(const char *nptr, char **endptr, register int base) in strtol() argument
124 if (endptr != NULL) { in strtol()
125 *endptr = (char *)(any ? (s - 1) : nptr); in strtol()
Dstrtoll.c43 long long strtoll(const char *nptr, char **endptr, register int base) in strtoll() argument
123 if (endptr != NULL) { in strtoll()
124 *endptr = (char *)(any ? (char *)s - 1 : nptr); in strtoll()
/Zephyr-Core-3.7.0/subsys/shell/
Dshell_utils.c542 char *endptr = NULL; in shell_strtol() local
545 val = strtol(str, &endptr, base); in shell_strtol()
549 } else if (errno || endptr == str || *endptr) { in shell_strtol()
560 char *endptr = NULL; in shell_strtoul() local
568 val = strtoul(str, &endptr, base); in shell_strtoul()
572 } else if (errno || endptr == str || *endptr) { in shell_strtoul()
583 char *endptr = NULL; in shell_strtoull() local
591 val = strtoull(str, &endptr, base); in shell_strtoull()
595 } else if (errno || endptr == str || *endptr) { in shell_strtoull()
/Zephyr-Core-3.7.0/drivers/wifi/esp_at/
Desp_offload.c460 char *endptr; in cmd_ciprecvdata_parse() local
473 *data_len = strtol(&cmd_buf[len], &endptr, 10); in cmd_ciprecvdata_parse()
476 char *strstart = endptr + 1; in cmd_ciprecvdata_parse()
485 *port = strtol(strend + 1, &endptr, 10); in cmd_ciprecvdata_parse()
491 if (endptr == &cmd_buf[len] || in cmd_ciprecvdata_parse()
492 (*endptr == 0 && match_len >= CIPRECVDATA_CMD_MAX_LEN) || in cmd_ciprecvdata_parse()
496 } else if (*endptr == 0) { in cmd_ciprecvdata_parse()
498 } else if (*endptr != _CIPRECVDATA_END) { in cmd_ciprecvdata_parse()
499 LOG_ERR("Invalid end of cmd: 0x%02x != 0x%02x", *endptr, in cmd_ciprecvdata_parse()
505 *data_offset = (endptr - cmd_buf) + 1; in cmd_ciprecvdata_parse()
[all …]
/Zephyr-Core-3.7.0/drivers/watchdog/
Dwdt_shell.c51 char *endptr; in parse_named_int() local
55 i = strtoul(name, &endptr, 0); in parse_named_int()
57 if (*endptr == '\0') { in parse_named_int()
/Zephyr-Core-3.7.0/subsys/net/ip/
Dutils.c365 char *endptr; in z_impl_net_addr_pton() local
367 addr->s4_addr[i] = strtol(src, &endptr, 10); in z_impl_net_addr_pton()
369 src = ++endptr; in z_impl_net_addr_pton()
727 char *endptr; in convert_port() local
729 tmp = strtoul(buf, &endptr, 10); in convert_port()
730 if ((endptr == buf && tmp == 0) || in convert_port()
731 !(*buf != '\0' && *endptr == '\0') || in convert_port()
972 char *endptr; in net_bytes_from_str() local
984 buf[i] = (uint8_t)strtol(src, &endptr, 16); in net_bytes_from_str()
985 src = ++endptr; in net_bytes_from_str()
/Zephyr-Core-3.7.0/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-3.7.0/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-3.7.0/drivers/sensor/
Dsensor_shell.c251 char *endptr; in parse_named_int() local
255 i = strtoul(name, &endptr, 0); in parse_named_int()
257 if (*endptr == '\0') { in parse_named_int()
276 char *endptr; in parse_sensor_value() local
279 value = strtol(val_str, &endptr, 0); in parse_sensor_value()
281 if (*endptr != '\0' && *endptr != '.') { in parse_sensor_value()
294 value = strtoul(decimal_pos + 1, &endptr, 0); in parse_sensor_value()
295 if (*endptr != '\0') { in parse_sensor_value()

12