mirror of
https://github.com/matrix-construct/construct
synced 2024-09-10 10:41:36 +02:00
DupNString removed - we don't need it now
This commit is contained in:
parent
38cbb0a259
commit
bac4c06faf
1 changed files with 0 additions and 6 deletions
|
@ -99,12 +99,6 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
|
||||||
size_t strlcat(char *dst, const char *src, size_t siz);
|
size_t strlcat(char *dst, const char *src, size_t siz);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STRNDUP
|
|
||||||
#define DupNString(x, y, len) do { x = strndup(y, len); if(x == NULL) outofmemory(); } while (0)
|
|
||||||
#else
|
|
||||||
#define DupNString(x, y, len) do { x = malloc(len+1); if(x == NULL) outofmemory(); strlcpy(x, y, len+1); } while(0)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* clean_string - cleanup control and high ascii characters
|
* clean_string - cleanup control and high ascii characters
|
||||||
* -Dianora
|
* -Dianora
|
||||||
|
|
Loading…
Reference in a new issue