Add pg_strnlen() a portable implementation of strlen.

Andres Freund <andres@anarazel.de>

Commit: 8a241792f968ed5be6cf4d41e32c0d264f6c0c65
Author: Andres Freund <andres@anarazel.de>
Date: 2017-10-09T22:20:42Z
Releases: 11.0
Add pg_strnlen() a portable implementation of strlen.

As the OS version is likely going to be more optimized, fall back to
it if available, as detected by configure.

Files

PathChange+/−
configure modified +1 −1
configure.in modified +1 −1
src/common/string.c modified +20 −0
src/include/common/string.h modified +15 −0
src/include/pg_config.h.in modified +3 −0
src/include/pg_config.h.win32 modified +3 −0
src/port/snprintf.c modified +2 −10