News for hackers. Stuff that matters.
Re:Massacring C Pointers by beefhash on Tuesday June 26, 2018 @01:04PM (#17402284)
strnlen_s is in Annex K, which is an optional part of the standard. Incidentally, no libc in widespread usage has implemented it.
Re:Massacring C Pointers by ChrisSD on Tuesday June 26, 2018 @02:07PM (#17402783)
True. The non standard strnlen is however more widespread. Microsoft implements strnlen_s in terms of strnlen like so.

    _String == 0 ? 0 : strnlen(_String, _MaxCount)