Skip to content

Commit

Permalink
Add features
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Jun 6, 2023
1 parent c33bccd commit 17220fd
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,20 @@ following routines:
- `xdtoa()` - convert `double` to string
- `xatod()` - convert string to `double`
- `json_get()` - find element in a JSON string
- `json_get_num()` - fetch numeric value from JSON string
- `json_get_bool()` - fetch boolean value from JSON string
- `json_get_str()` - fetch string value from JSON string
- `json_get_num()` - fetch numeric value from a JSON string
- `json_get_bool()` - fetch boolean value from a JSON string
- `json_get_str()` - fetch string value from a JSON string

## Features

- Ideal for implementing serial protocols, debug logging, JSON data exchange
- Source code is both ISO C and ISO C++ compliant
- Tiny size: see the [Footprint](#footprint) section below for exact numbers
- `*printf()` supports all major format specifiers, width, precition and alignment
- `*printf()` supports floating point `%f` and `%g` specifiers by default
- `*printf()` Supports non-standard `%M`,`%m` specifiers which allows for custom formats
- Can print to anything: to a memory buffer, file, socket, UART, etc
- Extensively [tested](/cesanta/str/actions) using VC98, VC22, ARM GCC, AVR GCC, x86 GCC, Clang

## Usage example

Expand Down

0 comments on commit 17220fd

Please sign in to comment.