On Sun, Jun 26, 2011 at 09:59:14PM +0200, Zbigniew Jędrzejewski-Szmek wrote:
> 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;Good point - as obvious I made the mistake in the aux function of my code :-/ Anyway I'm still interested if Lennart would like add a new option to his Gnome3-like container :) Regards Michal Vyskocil
pgppLTFjuM7pz.pgp
Description: PGP signature
_______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
