4 ms·
strnlen_s is in Annex K, which is an optional part of the standard. Incidentally, no libc in widespread usage has implemented it.
by beefhash 8y ago
strnlen_s is in Annex K, which is an optional part of the standard. Incidentally, no libc in widespread usage has implemented it.
- ChrisSD 8y agoTrue. The non standard strnlen is however more widespread. Microsoft implements strnlen_s in terms of strnlen like so. _String == 0 ? 0 : strnlen(_String, _MaxCount)