Add e_util_strdup_strip().
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 22 May 2012 23:55:03 +0000 (19:55 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 23 May 2012 00:01:32 +0000 (20:01 -0400)
commit2d64b73d963637554221b3784a4c7ed5da1cf999
treec1895def45f03da6bb39a187f141b0e56d8838e9
parent61ff6733c679abec41564a97272d9490f22f52d5
Add e_util_strdup_strip().

Duplicates an input string and strips off any leading or trailing
whitespace.  The resulting string is returned unless it is empty or
NULL, in which case the function returns NULL.

Useful in "set" functions for string properties.
Helps avoid expressions like (str != NULL && *str != '\0').
docs/reference/libedataserver/libedataserver-sections.txt
libedataserver/e-data-server-util.c
libedataserver/e-data-server-util.h