Lines Matching +defs:val +defs:from
72 * use them as indexes into the array returned from parse_entry().
373 * remove any whitespace from the fields.
474 int dig, val;
484 dig = val = 0;
491 val = (val << 4) + chr - '0';
493 val = (val << 4) + chr -
504 *outbuf++ = val;
506 dig = val = 0;
648 int dig, val, inchr;
659 dig = val = 0;
682 val = val * 10 + inchr - '0';
684 *optstart++ = val;
685 dig = val = 0;
696 *optstart++ = val;
697 dig = val = 0;
731 *optstart++ = dig > 0 ? val : '\\';
1420 * decode_number(): decodes a sequence of numbers from binary into ascii;
1427 * const uint8_t *: where to decode the numbers from
1434 uint8_t granularity, const uint8_t *from, char *to, int *ierrnop)
1449 for (; n_entries != 0; n_entries--, from += size) {
1454 to += sprintf(to, is_signed ? "%d" : "%u", *from);
1458 (void) memcpy(&uint16, from, 2);
1465 (void) memcpy((uchar_t *)&uint32 + 1, from, 3);
1471 (void) memcpy(&uint32, from, 4);
1477 (void) memcpy(&uint64, from, 8);
1497 * encode_number(): encodes a sequence of numbers from ascii into binary;
1504 * const uint8_t *: where to encode the numbers from
1512 uint8_t granularity, const char *from, uint8_t *to, int *ierrnop)
1529 for (i = 0; i < n_entries; i++, from++, to += size) {
1544 *to = strtoul(from, &endptr, 0);
1545 if (errno != 0 || from == endptr) {
1551 uint16 = htons(strtoul(from, &endptr, 0));
1552 if (errno != 0 || from == endptr) {
1559 uint32 = htonl(strtoul(from, &endptr, 0));
1560 if (errno != 0 || from == endptr) {
1567 uint32 = htonl(strtoul(from, &endptr, 0));
1568 if (errno != 0 || from == endptr) {
1575 uint64 = htonll(strtoull(from, &endptr, 0));
1576 if (errno != 0 || from == endptr) {
1588 from = strchr(from, ' ');
1589 if (from == NULL)