Skip to content
Snippets Groups Projects
Commit 6ec1d1fe authored by rswindell's avatar rswindell
Browse files

The Borland C++/C++Builder (6) that I'm still using doesn't have asprintf() or

the necesary functions for a re-implementation of asprintf().
parent 293227d7
No related branches found
No related tags found
No related merge requests found
......@@ -270,6 +270,7 @@ size_t DLLCALL strListAppendList(str_list_t* list, const str_list_t add_list)
return(count);
}
#if !defined(__BORLANDC__) // Doesn't have asprintf() or va_copy()_vscprintf()
char* DLLCALL strListAppendFormat(str_list_t* list, const char* format, ...)
{
char *ret;
......@@ -289,6 +290,7 @@ char* DLLCALL strListAppendFormat(str_list_t* list, const char* format, ...)
free(buf);
return ret;
}
#endif
char* DLLCALL strListInsert(str_list_t* list, const char* str, size_t index)
{
......@@ -318,6 +320,7 @@ size_t DLLCALL strListInsertList(str_list_t* list, const str_list_t add_list, si
return(i);
}
#if !defined(__BORLANDC__) // Doesn't have asprintf() or va_copy()_vscprintf()
char* DLLCALL strListInsertFormat(str_list_t* list, size_t index, const char* format, ...)
{
char *ret;
......@@ -337,6 +340,7 @@ char* DLLCALL strListInsertFormat(str_list_t* list, size_t index, const char* fo
free(buf);
return ret;
}
#endif
str_list_t DLLCALL strListSplit(str_list_t* lp, char* str, const char* delimit)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment