Data Storage Tool Display Human Input Protocol Math Motor Control Sensor Signal Generation & Processing Speech & Sound Fun View all Objects


Quick Links
Contact Us
Forums
Support

Register
Login

This object is provided under license. By downloading this object, you are agreeing to the terms of the MIT License.

Format

This library object provides formatted string output and
scan methods based on the standard C sprintf and sscanf
functions. With this object you can convert byte, word and
long types into binary, octal, decimal or hexadecimal
formatted strings. You can specify the minimum and maximum
number of columns to display your values, and these values
can be left or right justified, with or without padded
zeros. Methods are included for the following C library
functions: itoa, atoi, sprintf and sscanf.
This implementation defines the functions bprintf and
bscanf that take one, and only one, variable parameter.
The original format string must be split into pieces that
all have one format specifier. This normally is not a
problem since most format strings consists of fixed text
with format specifiers for values.

Version:
  1.2

Type:
  Object

Attributes:


Author:
  Peter Verkaik

Categories:
  Tool

Downloads:
  973

Last Updated:
  2007-12-16



User Reviews:

  • keezinator commented:
    Nice try. I considered this myself. Pity the documentation is not done using the spin conventions, so 'documentation' view in the spin tool does not work. The implementation also does not support floating point. Understandably, but the documentation does not even mention this as a restriction.
    September 9, 2008 9:30 a.m.




  • Comments on this Object:


    Post a comment:




    Please contact obex.support@parallax.com with comments or questions.

    Copyright 2011 by Parallax, Inc.