perf tools: Move ltrim() to util/string.c
authorNamhyung Kim <namhyung.kim@lge.com>
Tue, 22 Jan 2013 09:09:41 +0000 (18:09 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 24 Jan 2013 19:40:49 +0000 (16:40 -0300)
commit08aa9cce6bf3ecdfa386cf0a0be842855eac3e7d
treee7038266905e66bd5628aecc5078a49fb5ecabe6
parent15268138e334bd0362f8395edac4822351714a22
perf tools: Move ltrim() to util/string.c

As we have ltrim() implementation in builtin-script.c move it to the
more generic location of util/string.c so that it can be used from other
places.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Feng Tang <feng.tang@intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1358845787-1350-14-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c
tools/perf/util/string.c
tools/perf/util/util.h