MCPcopy Create free account
hub / github.com/F-Stack/f-stack / str2id

Function str2id

freebsd/kern/kern_rctl.c:849–862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849static int
850str2id(const char *str, id_t *value)
851{
852 char *end;
853
854 if (str == NULL)
855 return (EINVAL);
856
857 *value = strtoul(str, &end, 10);
858 if ((size_t)(end - str) != strlen(str))
859 return (EINVAL);
860
861 return (0);
862}
863
864static int
865str2int64(const char *str, int64_t *value)

Callers 1

rctl_string_to_ruleFunction · 0.85

Calls 1

strtoulFunction · 0.85

Tested by

no test coverage detected