https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84269
--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Another one: void test (char *dst, const char *src) { strncpy (dst, 10, src); } In function 'void test(char*, const char*)': <source>:3:5: error: 'strncpy' was not declared in this scope strncpy (dst, 10, src); ^~~~~~~ <source>:3:5: note: suggested alternative: 'struct' strncpy (dst, 10, src); ^~~~~~~ struct