FENTEC project provided the first fully-fledged functional encryption library. By fully-fledged we mean a library where the user can choose via an easy-to-use API between different schemes and each scheme can be instantiated from different cryptographic primitives.
FENTEC library actually comes in two flavors: GoFE is written in Go, while CiFEr is written in C.