Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
fd307bfe
Commit
fd307bfe
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
cut off a big piece of comment and added a pointer to the Trio web page
should anyone ever want a good printf() clone
parent
a00de093
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/mprintf.c
+5
-67
5 additions, 67 deletions
lib/mprintf.c
with
5 additions
and
67 deletions
lib/mprintf.c
+
5
−
67
View file @
fd307bfe
...
...
@@ -24,73 +24,11 @@
* - Max 128 parameters
* - No 'long double' support.
*
*************************************************************************
*
*
* 1998/01/10 (v2.8)
* Daniel
* - Updated version number.
* - Corrected a static non-zero prefixed width problem.
*
* 1998/11/17 - Daniel
* Added daprintf() and dvaprintf() for allocated printf() and vprintf().
* They return an allocated buffer with the result inside. The result must
* be free()ed!
*
* 1998/08/23 - breese
*
* Converted all non-printable (and non-whitespace) characters into
* their decimal ASCII value preceeded by a '\' character
* (this only applies to snprintf family so far)
*
* Added %S (which is the same as %#s)
*
* 1998/05/05 (v2.7)
*
* Fixed precision and width qualifiers (%.*s)
*
* Added support for snprintf()
*
* Quoting (%#s) is disabled for the (nil) pointer
*
* 1997/06/09 (v2.6)
*
* %#s means that the string will be quoted with "
* (I was getting tired of writing \"%s\" all the time)
*
* [ERR] for strings changed to (nil)
*
* v2.5
* - Added C++ support
* - Prepended all internal functions with dprintf_
* - Defined the booleans
*
* v2.4
* - Added dvsprintf(), dvfprintf() and dvprintf().
* - Made the formatting function available with the name _formatf() to enable
* other *printf()-inspired functions. (I considered adding a dmsprintf()
* that works like sprintf() but allocates the destination string and
* possibly enlarges it itself, but things like that should be done with the
* new _formatf() instead.)
*
* v2.3
* - Small modifications to make it compile nicely at both Daniel's and
* Bjorn's place.
*
* v2.2
* - Made it work with text to the right of the last %!
* - Introduced dprintf(), dsprintf() and dfprintf().
* - Float/double support enabled. This system is currently using the ordinary
* sprintf() function. NOTE that positional parameters, widths and precisions
* will still work like it should since the d-system takes care of that and
* passes that information re-formatted to the old sprintf().
*
* v2.1
* - Fixed space padding (i.e %d was extra padded previously)
* - long long output is supported
* - alternate output is done correct like in %#08x
*
****************************************************************************/
* If you ever want truly portable and good *printf() clones, the project that
* took on from here is named 'Trio' and you find more details on the trio web
* page at http://daniel.haxx.se/trio/
*/
#include
"setup.h"
#include
<sys/types.h>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment