12 h = (
h + (
h << 5)) ^ *
s++;
28 const ut8 *
h = (
const ut8 *)&hash;
29 return h[0] ^
h[1] ^
h[2] ^
h[3];
39 static const char *lookup =
"0123456789abcdef";
55 if ((base > 16) || (base < 1)) {
67 for (;
n &&
i > 0;
n /= base) {
68 s[
i--] = (
n % base) +
'0';
71 for (;
n &&
i > 0;
n /= base) {
72 s[
i--] = lookup[(
n % base)];
82 memmove(
s,
s +
i + 1, strlen(
s +
i + 1) + 1);
91 if (!
s || *
s ==
'-') {
94 ret = strtoull(
s, &
p, 0);
103 if (!strncmp(
p,
",,", 2)) {
105 for (
e =
p + 1; *
e ==
',';
e++) {
107 memmove(
p,
e, strlen(
e) + 1);
153 const char *
n, *
p =
str;
169 const char *
n, *
p =
str;
213 return usec / 1000000;
218 return ((vs ==
'-' || vs ==
'+') || (vs >=
'0' && vs <=
'9'));
225 if (!strncmp(
s,
"0x", 2)) {
228 return (*
s ==
'0' &&
s[1]) ? 8 : 10;
238 if (strchr(
k,
',')) {
241 if (!strcmp(
k,
"true") || !strcmp(
k,
"false")) {
const lzma_allocator const uint8_t size_t uint8_t * out
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
RZ_API char * sdb_fmt(const char *fmt,...)
RZ_API void Ht_() free(HtName_(Ht) *ht)
RZ_API char * sdb_anext(char *str, char **next)
RZ_API ut8 sdb_hash_byte(const char *s)
RZ_API ut64 sdb_now(void)
RZ_API int sdb_isnum(const char *s)
RZ_API char * sdb_aslice(char *out, int from, int to)
RZ_API int sdb_alen(const char *str)
RZ_API char * sdb_itoa(ut64 n, char *s, int base)
RZ_API ut32 sdb_hash(const char *s)
RZ_API char * sdb_array_compact(char *p)
RZ_API const char * sdb_type(const char *k)
RZ_API const char * sdb_const_anext(const char *str)
RZ_API int sdb_alen_ignore_empty(const char *str)
RZ_API ut64 sdb_atoi(const char *s)
RZ_API const char * sdb_itoca(ut64 n)
RZ_API ut32 sdb_hash_len(const char *s, ut32 *len)
RZ_API int sdb_num_base(const char *s)
void * malloc(size_t size)
#define copy_string(type_code_str, str_for_copy)
RZ_API ut64 rz_time_now(void)
Returns the current time in microseconds.
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr from
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
ut64(WINAPI *w32_GetEnabledXStateFeatures)()