Printfe is an extensible version of the standard
printf routines. By "extensible" I mean you can
add your own format specifiers. The package already
includes five extensions:

=b Binary numbers
=B Boolean (true/false) values
=I IPV4 Internet addresses
=M 6 byte MAC addresses
=Z Output a user defined EOL sequence

As you might guess, extension formats are preceded
by '='. The normal rules for format qualifiers apply
to the extended formats as well. For example:

printfe("***%16=I***",0xFFFFFFFF);

would output:

*** 255.255.255.255***

The code also supports the non-standard flag
(apostrophe) for inserting commas into numeric
output.

There is a printfe version of all the standard printf
functions, using the same arguments and giving the
same return value.

Project Activity

See All Activity >

Follow printfe

printfe Web Site

Other Useful Business Software
Auth0 B2B Essentials: SSO, MFA, and RBAC Built In Icon
Auth0 B2B Essentials: SSO, MFA, and RBAC Built In

Unlimited organizations, 3 enterprise SSO connections, role-based access control, and pro MFA included. Dev and prod tenants out of the box.

Auth0's B2B Essentials plan gives you everything you need to ship secure multi-tenant apps. Unlimited orgs, enterprise SSO, RBAC, audit log streaming, and higher auth and API limits included. Add on M2M tokens, enterprise MFA, or additional SSO connections as you scale.
Sign Up Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of printfe!

Additional Project Details

Registered

2014-09-12