Overview of strlcpy/strlcat support in different C runtimes

The table below shows, with references, which C run-time environments support the strlcpy and strlcat functions.

System'

Availability

Compatibility

AIX

no

na

avr-libc

yes

full*

Bionic

yes

full

Cygwin

yes

full

dietlibc

yes

basic

Embarcardero

no

na

FreeBSD

yes

full

glibc

no

na

HardenedBSD

yes

?

HP-UX

no

na

Illumos

yes

full

Interix

yes

?

Keil

yes

?

klibc

yes

full*

newlib

yes

(see Cygwin)

Mac OS X

yes

full

MSVCRT

no

na

musl

yes

full

NetBSD

yes

full

OpenBSD

yes

full

OpenWatcom

yes

basic*

QNX

yes

?

Solaris

yes

(see Illumos)

uClibc

yes

full*

vxWorks

no

na

Compatibility is tested using https://pagure.io/strlcpy-tests. The following tests are performed:

These tests do not cover the behavior with overlapping inputs and outputs, which is difficult to test conclusively.

The reported compatibility levels are:

None: strlcpy (last edited 2017-07-21 14:52:29 by CarlosODonell)