publicrepo / formatstring

Simple and safe snprintf and scanf style functions for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

formatstring

Format String Library

The purpose of this library is to provide simpler, safer updated versions of snprintf and scanf style functions.
Specifically, it adds:

  • 64bit float and int support
  • Type checking
  • Type conversion (eg. float <--> int)
  • Optional .Net format syntax

Usage is described in the header files for each primary function:

  • FormatString - Replacement for snprintf using .net style format string
  • FormatStringF - Replacement for snprintf
  • ScanStringF - Replacement for scanf

To compile:
Add the \FormatStringLib files to your project

To use:
See the \Example\Test.cpp file for example usage

This software is Free and Open Source. Use at your own risk and please observe any copyright notices from contributors.

About

Simple and safe snprintf and scanf style functions for C++


Languages

Language:C++ 92.2%Language:C 7.8%