bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Implement /proc/slabinfo


From: Samuel Thibault
Subject: Re: [PATCH] Implement /proc/slabinfo
Date: Sat, 24 May 2014 10:57:41 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Fri 23 May 2014 08:54:25 +0200, a écrit :
> +  for (i = 0; i < cache_info_count + 1; i++)
> +    {
> +      size_t l = strlen (infos[i]);
> +      memcpy (p, infos[i], l);

The length could be stored too, to avoid having to run strlen again.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]