/Zephyr-latest/subsys/shell/modules/ |
D | date_service.c | 43 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/ |
D | sip_svc_shell.c | 68 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 …]
|
D | sip_svc_agilex_mailbox_shell.c | 81 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/ |
D | nsi_cmdline_common.c | 126 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/ |
D | cmdline_common.c | 124 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/ |
D | can_shell.c | 441 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/ |
D | vlan.c | 99 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()
|
D | udp.c | 64 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()
|
D | net_shell.c | 28 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/ |
D | stdlib.h | 21 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/ |
D | strtoul.c | 43 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()
|
D | strtoull.c | 43 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()
|
D | strtol.c | 43 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()
|
D | strtoll.c | 43 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/ |
D | modem_shell.c | 107 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/ |
D | codec_shell.c | 61 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/ |
D | shell_utils.c | 553 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/ |
D | esp_offload.c | 489 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/ |
D | bridge_shell.c | 16 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/ |
D | wdt_shell.c | 51 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/ |
D | utils.c | 351 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/ |
D | json.c | 427 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/ |
D | main.c | 159 char *endptr; in set_promisc_mode() local 167 idx = strtol(argv[1], &endptr, 10); in set_promisc_mode()
|
/Zephyr-latest/drivers/sensor/ |
D | sensor_shell.c | 256 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/ |
D | diag.c | 45 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()
|