home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-11-15 | 1.3 KB | 33 lines | [TEXT/SPM ] |
- /*
- About libsprintf
-
- I like the sprintf function. I think it is very valuable for building strings on the
- fly, including conversions, padding, etc. IMHO, it is a very useful function.
-
- However, to use sprintf normally means that you have to add one of the ANSI
- libraries to a project; that means that you also have to include the overhead
- that ANSI can add, just to access this really useful function.
-
- I needed a sprintf function to implement a syslog library, but I didn't want the
- overhead of the ANSI libraries getting in the way.
-
- Libsprintf removes these restrictions. As a standalone piece of code, it is
- easy and cheap to add this library to a project without encurring any additional
- overhead.
-
- And by adding the code directly to the project, you get the extra advantage of
- speed (The sample program shows timing differences between symantec's sprintf
- from the ANSI library and the libsprintf standalone code - a time savings of 30%).
-
- Two versions of each application are provided; one with the 'register' keyword
- specified in the code, and one that ignores the 'register' keyword. This can
- help determine if the automatic register assignment by the compiler is 'smart'
- or not.
-
- See the copyright in libsprintf.c. See the code to see how everything is handled.
-
- Dave Nebinger
- dnebing@epix.net
- */
-
-