* rewrite stripallbut() to return the length
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 26 Nov 2010 00:11:08 +0000 (01:11 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 27 Nov 2010 12:58:50 +0000 (13:58 +0100)
commit4b3d94793beb5d8e9066922f061af7f276636f0c
tree96e6c18840b729c194f05fcd2d78b006d12d7270
parentbf97af5fc8284646d316733975e2b54826aa083c
* rewrite stripallbut() to return the length

 - remove strlen from the for loop abort condition
 - move string around _once_
 - return the length of the string we operated on, since we know it after the operation anyways.
libcitadel/lib/libcitadel.h
libcitadel/lib/tools.c