2 ms·
You're overcomplicating the problem. void accept_string(const char *a, size_t a_length); is good enough. It has the additional advantage that you can give
by 7786655 7y ago
You're overcomplicating the problem.
void accept_string(const char *a, size_t a_length);
is good enough. It has the additional advantage that you can give it a substring out of a larger string without copying it.