BSD Ports

devel/fmt 11.2.0p0 OpenBSD

alternative formatting library for C and C++

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Last update
Commit
0e50792015
Categories
devel

Description

fmt is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.

Features include:

  • Simple format API with positional arguments for localization Format

  • string syntax similar to Python's format

  • Safe printf implementation including POSIX extensions for positional arguments

  • Fast IEEE 754 floating-point formatter with correct rounding, shortness and round-trip guarantees

Install

Binary package:

pkg_add fmt

From the ports tree:

cd /usr/ports/devel/fmt && make install

Dependencies

Build dependencies 2

Commit history 1

DateCommitCreditsLog message
0e50792015 tb fmt: fix build with libcxx22, ok sthen
fmt relies on pulling in stdlib.h for malloc/free via C++ headers, and this no longer happens with libcxx22. So follow the approach taken by upstream and include it explicitly.