1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-02 14:15:46 +01:00

- Added wstrndup() and WMGetFontName()

This commit is contained in:
dan
2002-12-02 00:01:05 +00:00
parent 96c64e15ef
commit ca43aba088
7 changed files with 721 additions and 688 deletions

View File

@@ -186,6 +186,21 @@ wstrdup(char *str)
}
char*
wstrndup(char *str, size_t len)
{
char *copy;
assert(str!=NULL);
len = WMIN(len, strlen(str));
copy = strncpy(wmalloc(len+1), str, len);
copy[len] = 0;
return copy;
}
char*
wstrconcat(char *str1, char *str2)
{