1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-23 02:25:54 +01:00

make wtrimspace() use internal api

make wtrimspace() use wings' own function for a task

semantics change: it used to segfault given null, now it returns null.
this doesn't affect any current use (there's exactly one..), and i see
no harm in this behaviour, and perceive this to be more natural.
This commit is contained in:
Tamas TEVESZ
2010-03-17 14:49:33 +01:00
committed by Carlos R. Mafra
parent 109e504262
commit 9911ecd985
2 changed files with 9 additions and 11 deletions

View File

@@ -257,7 +257,7 @@ void wrelease(void *ptr);
void* wretain(void *ptr);
char *wstrdup(const char *str);
char* wstrndup(char *str, size_t len);
char* wstrndup(const char *str, size_t len);
/* Concatenate str1 with str2 and return that in a newly malloc'ed string.
* str1 and str2 can be any strings including static and constant strings.
@@ -283,7 +283,7 @@ char* wtokenjoin(char **list, int count);
void wtokenfree(char **tokens, int count);
char* wtrimspace(char *s);
char* wtrimspace(const char *s);
WMRange wmkrange(int start, int count);