Home
last modified time | relevance | path

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

12

/Zephyr-latest/subsys/shell/modules/
Ddate_service.c43 char *endptr; in get_y_m_d() local
45 year = strtol(date_str, &endptr, 10); in get_y_m_d()
46 if ((endptr == date_str) || (*endptr != '-')) { in get_y_m_d()
50 date_str = endptr + 1; 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 day = strtol(date_str, &endptr, 10); in get_y_m_d()
65 if ((endptr == date_str) || (*endptr != '\0')) { in get_y_m_d()
89 char *endptr; in get_h_m_s() local
[all …]
/Zephyr-latest/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-latest/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-latest/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-latest/drivers/can/
Dcan_shell.c441 char *endptr; in cmd_can_bitrate_set() local
449 bitrate = (uint32_t)strtoul(argv[2], &endptr, 10); in cmd_can_bitrate_set()
450 if (*endptr != '\0') { in cmd_can_bitrate_set()
456 sample_pnt = (uint32_t)strtoul(argv[3], &endptr, 10); in cmd_can_bitrate_set()
457 if (*endptr != '\0') { in cmd_can_bitrate_set()
472 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_bitrate_set()
473 if (*endptr != '\0') { in cmd_can_bitrate_set()
512 char *endptr; in cmd_can_dbitrate_set() local
520 bitrate = (uint32_t)strtoul(argv[2], &endptr, 10); in cmd_can_dbitrate_set()
521 if (*endptr != '\0') { in cmd_can_dbitrate_set()
[all …]
/Zephyr-latest/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()
/Zephyr-latest/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-latest/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-latest/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-latest/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-latest/subsys/shell/
Dshell_utils.c553 char *endptr; in shell_strtol() local
556 val = strtol(str, &endptr, base); in shell_strtol()
560 } else if (errno || endptr == str || *endptr) { in shell_strtol()
571 char *endptr; in shell_strtoul() local
579 val = strtoul(str, &endptr, base); in shell_strtoul()
583 } else if (errno || endptr == str || *endptr) { in shell_strtoul()
594 char *endptr; in shell_strtoull() local
602 val = strtoull(str, &endptr, base); in shell_strtoull()
606 } else if (errno || endptr == str || *endptr) { in shell_strtoull()
/Zephyr-latest/drivers/wifi/esp_at/
Desp_offload.c489 char *endptr; in cmd_ciprecvdata_parse() local
502 *data_len = strtol(&cmd_buf[len], &endptr, 10); in cmd_ciprecvdata_parse()
505 char *strstart = endptr + 1; in cmd_ciprecvdata_parse()
514 *port = strtol(strend + 1, &endptr, 10); in cmd_ciprecvdata_parse()
520 if (endptr == &cmd_buf[len] || in cmd_ciprecvdata_parse()
521 (*endptr == 0 && match_len >= CIPRECVDATA_CMD_MAX_LEN) || in cmd_ciprecvdata_parse()
525 } else if (*endptr == 0) { in cmd_ciprecvdata_parse()
527 } else if (*endptr != _CIPRECVDATA_END) { in cmd_ciprecvdata_parse()
528 LOG_ERR("Invalid end of cmd: 0x%02x != 0x%02x", *endptr, in cmd_ciprecvdata_parse()
534 *data_offset = (endptr - cmd_buf) + 1; in cmd_ciprecvdata_parse()
[all …]
/Zephyr-latest/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-latest/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-latest/subsys/net/ip/
Dutils.c351 char *endptr; in z_impl_net_addr_pton() local
353 addr->s4_addr[i] = strtol(src, &endptr, 10); in z_impl_net_addr_pton()
355 src = ++endptr; in z_impl_net_addr_pton()
713 char *endptr; in convert_port() local
715 tmp = strtoul(buf, &endptr, 10); in convert_port()
716 if ((endptr == buf && tmp == 0) || in convert_port()
717 !(*buf != '\0' && *endptr == '\0') || in convert_port()
958 char *endptr; in net_bytes_from_str() local
970 buf[i] = (uint8_t)strtol(src, &endptr, 16); in net_bytes_from_str()
971 src = ++endptr; in net_bytes_from_str()
/Zephyr-latest/lib/utils/
Djson.c427 char *endptr; in decode_num() local
434 *num = strtol(token->start, &endptr, 10); in decode_num()
442 if (endptr != token->end) { in decode_num()
451 char *endptr; in decode_int64() local
458 *num = strtoll(token->start, &endptr, 10); in decode_int64()
466 if (endptr != token->end) { in decode_int64()
475 char *endptr; in decode_uint64() local
482 *num = strtoull(token->start, &endptr, 10); in decode_uint64()
490 if (endptr != token->end) { in decode_uint64()
/Zephyr-latest/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-latest/drivers/sensor/
Dsensor_shell.c256 char *endptr; in parse_named_int() local
260 i = strtoul(name, &endptr, 0); in parse_named_int()
262 if (*endptr == '\0') { in parse_named_int()
281 char *endptr; in parse_sensor_value() local
284 value = strtol(val_str, &endptr, 0); in parse_sensor_value()
286 if (*endptr != '\0' && *endptr != '.') { in parse_sensor_value()
299 value = strtoul(decimal_pos + 1, &endptr, 0); in parse_sensor_value()
300 if (*endptr != '\0') { in parse_sensor_value()
/Zephyr-latest/modules/openthread/platform/
Ddiag.c45 char *endptr; in parse_long() local
46 *aValue = strtol(aArgs, &endptr, 0); in parse_long()
47 return (*endptr == '\0') ? OT_ERROR_NONE : OT_ERROR_PARSE; in parse_long()

12