'restrict' is harmful as it encourages the compiler to make dangerous
assumptions while increasing cognitive load on the human programmer.
The extra 1% (or whatever) of performance here is not worth the cost.
* The separator is arbitrary. When the separator is NULL, a single space will
* be used.
*/
-char *str_join(const char *const parts[],
- const char *restrict fmt, const char *restrict sep);
+char *str_join(const char *const parts[], const char *fmt, const char *sep);
/**
* str_endswith - indicate whether a string ends with a given suffix
}
char *
-str_join(const char *const parts[],
- const char *restrict fmt, const char *restrict sep)
+str_join(const char *const parts[], const char *fmt, const char *sep)
{
assert(parts);