c - Is standard behavior relate to gcc version? -
will of standard c library behavior affected gcc version? 1 example interested in strncpy()
other examples interesting too.
will of standard c library behavior affected gcc version?
yes, depends.
it's quite broad question. there differences in gcc supports depending on version of gcc using. gcc has many extensions not in standard c (hence not portable if use extensions). disable of them -std=xx -pedantic-errors
flag. assuming have gcc version supports standard c features(whatever standard aim for), additional differences between standard c vs. posix c vs. gnu c vs. linux specific extensions documented in manual, consult determine potential differences or extensions. strncpy, there's no difference in behaviour between standard c , gnu c.