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:
committed by
Carlos R. Mafra
parent
109e504262
commit
9911ecd985
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user