:: Re: [DNG] Unmingling kdbus and the …
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Hendrik Boom
Fecha:  
A: dng
Asunto: Re: [DNG] Unmingling kdbus and the Linux kernel
On Mon, Aug 03, 2015 at 01:14:16PM +0100, Rainer Weikusat wrote:

>
> [*] In case you want an example where this is at least debatable (and I
>     happen to disgree with what he wrote on the topic). The simplest way
>     to implement a block memory copy in C is


Correction:

>
>     static void cpy(char *d, char const *s, size_t len)
>     {
>         while (len) --len, d[len] = s[len];

         while (len){ --len, d[len] = s[len]; |

>     }

>


It may have been simple, but not correct.

The real point here, though, is that it was simple enough for someone
to fix it easily! This is the whole point of using simple tools that
do one thing,

-- hendrik