catdup.c: catdup_array() array parameter type changed to "const char *"

This commit is contained in:
Nedko Arnaudov 2023-12-09 02:10:36 +02:00
parent 292d9f1c04
commit 4568d7b0a1
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ char * catdupv(const char * s1, const char * s2, ...)
return buffer;
}
char * catdup_array(const char ** array, const char * delimiter)
char * catdup_array(const char * const * array, const char * delimiter)
{
size_t len;
size_t i;

View File

@ -65,6 +65,6 @@ char * catdupv(const char * s1, const char * s2, ...);
*
* @return Newly allocated buffer where the input strings are concatenated into.
*/
char * catdup_array(const char ** array, const char * delimiter);
char * catdup_array(const char * const * array, const char * delimiter);
#endif /* #ifndef CATDUP_H__D42302F1_4D96_4EE4_AC09_E97ED5748277__INCLUDED */