https://github.com/loki-astari/thorsioutil
Utilities for handling IO in C++
https://github.com/loki-astari/thorsioutil
cpp formatting io printf
Last synced: 3 months ago
JSON representation
Utilities for handling IO in C++
- Host: GitHub
- URL: https://github.com/loki-astari/thorsioutil
- Owner: Loki-Astari
- License: gpl-3.0
- Created: 2018-02-16T17:11:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2026-01-25T05:08:06.000Z (3 months ago)
- Last Synced: 2026-01-25T06:43:41.384Z (3 months ago)
- Topics: cpp, formatting, io, printf
- Language: C++
- Size: 756 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://ko-fi.com/G2G216KZR3)

# ThorsIOUtil
Provides IO string formatting functionality that matches that provided by `printf()`.
This library also uses the same set of tests as used by GNU to test the functionality.
[Full Documentation](https://lokiastari.com/ThorsIOUtil/#introduction)
### Example.cpp
````
#include "ThorsIOUtil/Format.h"
#include
int main()
{
namespace IO = ThorsAnvil::IOUtil;
// Plain and simplt:
std::cout << IO::make_format("This is string %s followed by a number %d or is it?", "The string", 45);
// Some formatting
std::cout << IO::make_format("Interesting Long Long %#+21.18llx", -100LL);
// This should output: "Interesting Long Long 0x00ffffffffffffff9c"
}
````