[systemd-devel] [PATCH] nspawn: spawn shell under specified --user
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Sun Jun 26 12:59:14 PDT 2011
On 06/24/2011 02:39 PM, Michal Vyskocil wrote:
> +int isdigits(const char* str) {
> + size_t i;
> +
> + if (!str)
> + return 0;
> +
> + for (i = 0; i != strlen(str); i++) {
> + if (!isdigit(str[i]))
> + return 0;
> + }
Quadratic behaviour? What aboout
while(*str)
if(!isdigit(*str++))
return 0;
Best,
Zbyszek
More information about the systemd-devel
mailing list