Skip to content

sven/pinkie_sscanf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PINKIE SSCANF

This module contains the sscanf-implementation of PINKIE. It can be used separately to add a minimal number-parsing sscanf-functionality.

It currently supports the following patterns:

  • %i - signed integers
  • %u - unsigned integers
  • %x - hex values
  • %% - percent sign
  • %n - store current position in pointer
  • maximum field width

This implementation supports up to 64-bit numbers which can be configured by the define PINKIE_CFG_SSCANF_MAX_INT:

  • PINKIE_CFG_SSCANF_MAX_INT == 1: 8 bit numbers
  • PINKIE_CFG_SSCANF_MAX_INT == 2: 8 to 16 bit numbers
  • PINKIE_CFG_SSCANF_MAX_INT == 4: 8 to 32 bit numbers
  • PINKIE_CFG_SSCANF_MAX_INT == 8: 8 to 64 bit numbers (default)

Tested on:

  • Atmel ATmega328P (8-bit uC, used in Arduino Nano)
  • Linux 32 Bit
  • Linux 64 Bit

About

PINKIE SSCANF spin-off

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published