Re: [lxc-devel] [PATCH 4/6] utils: Add string and array utility functions

2013-09-10 Thread Christian Seiler
Hi Serge, > However, a comment about > +/* Normalize and split path: Leading and trailing / are removed, multiple > + * / are compactified, .. and . are resolved (.. on the top level is > considered > + * identical to .). > + * Examples: > + * /-> { NULL } > + * foo/../bar

Re: [lxc-devel] [PATCH 4/6] utils: Add string and array utility functions

2013-09-09 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > Adds a few useful string and array manipulation functions to utils.[ch] > > Signed-off-by: Christian Seiler Acked-by: Serge E. Hallyn However, a comment about +/* Normalize and split path: Leading and trailing / are removed, multiple + * / are c

[lxc-devel] [PATCH 4/6] utils: Add string and array utility functions

2013-09-08 Thread Christian Seiler
Adds a few useful string and array manipulation functions to utils.[ch] Signed-off-by: Christian Seiler --- src/lxc/utils.c | 284 +++ src/lxc/utils.h | 32 +++ 2 files changed, 316 insertions(+) diff --git a/src/lxc/utils.c b/src/lxc/u