Is it same deprecated in GNU as in Microsoft C runtime?
Is deprecation, if there is such in GNU C, enforced by later standard of C after 89/90 or the compiler?
If it's GNU C compiler, since when and does it provide such a secure alternative memory operating function like
memcpy_sto the deprecatedmemcpyin Microsoft C?If it's later C standard after 89/90, since when and does it provide such a secure alternative memory operating function like
memcpy_sto the deprecatedmemcpyin Microsoft C?If no such deprecation in GNU C runtime, is there a function which is neither among those memory operations (name started with
mem) nor the one I know asbcopy, but I can use to copy memory safe in that it takes a parameter about length of the destination?If there is/are, could you please list as many as possible?
Best practice for memcpy in C
3.7k views Asked by Yang At
2
memcpy_shas been in added since C11 but is an optional extension.memcpyhas not been deprecated in C and is not an obsolescent function.glibcas of now does not support_sfunctions and there is no plan (AFAIK) forglibcteam to support them.