[Development] #pragma or xxx_s functions
Kurt Pattyn
kurt.pattyn at icloud.com
Thu Dec 19 16:36:36 CET 2013
On 19 Dec 2013, at 02:31, Thiago Macieira <thiago.macieira at intel.com> wrote:
>
> I especially like memcpy_s, which takes an extra argument which is most often
> the exact same value you were already passing anyway[1]. Too bad they didn't
> make memcmp_s, that would have been funny, returning EDOOFUS if you passed the
> wrong args :-)
Maybe Qt can add #error EDOOFUS when an MSVC compiler is detected J
>
> [1] http://msdn.microsoft.com/en-us/library/wes2t00f.aspx
> [2] http://fxr.watson.org/fxr/ident?i=EDOOFUS
> See also the suggested replacements at [3], of which I like EEEEEEEEEEK best
> [3]
> https://groups.google.com/forum/?hl=en#!msg/fa.freebsd.hackers/V7cWmQeWVfg/IIjCCbdz4BEJ
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
> Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list