Add pg_string_endswith as the start of a string helper library in src/common.

Andres Freund <andres@anarazel.de>

Commit: bb2e2ce6e2ea4835ed99593508d0909af0e402d6
Author: Andres Freund <andres@anarazel.de>
Date: 2015-01-03T19:54:13Z
Releases: 9.3.6
Add pg_string_endswith as the start of a string helper library in src/common.

Backpatch to 9.3 where src/common was introduce, because a bugfix that
needs to be backpatched, requires the function. Earlier branches will
have to duplicate the code.

Files

PathChange+/−
src/common/Makefile modified +1 −1
src/common/string.c added +43 −0
src/include/common/string.h added +15 −0
src/tools/msvc/Mkvcbuild.pm modified +1 −1