This name better reflects that it handles arrays, and doesn't shout.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
STRNCPYTAIL()
Like strncpytail, but takes an array.
- STRNCAT() // To be removed
+ strncat_a() // To be removed
Do NOT use. I'll remove it soon.
s/
#include "sizeof.h"
-#define STRNCAT(dst, src) strncat(dst, src, countof(src))
+// strncat_a - nonstring catenate-into-string array
+#define strncat_a(dst, src) strncat(dst, src, countof(src))
#endif // include guard
else
strcpy(tty_name, "");
- STRNCAT(tty_name, ut->ut_line);
+ strncat_a(tty_name, ut->ut_line);
#ifndef O_NOCTTY
#define O_NOCTTY 0
#endif