* 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)
commitb063c5c8c89de1e8586dae1c6fade1e68f371165
tree96e6c18840b729c194f05fcd2d78b006d12d7270
parentbbb12112aa8f6564aa348976f682c5e5765645e3
* 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