The evolution of SNIPPETS...
...or "Is this your father's SNIPPETS?" Well, yes and no.
Although I've been lax in maintaining the collection and archives in recent years, it has never stopped evolving. As some of you may know, the SNIPPETS collection started out as my own personal collection of guaranteed reusable C code back in the mid- to late-80's. As my career changed, I kept adding to it and revising it to support new requirements. For example:
- The SNIPPETS archive originally consisted of only C code. Although C remains the primary focus, it now also includes C++. Where appropriate and possible everything now compiles in either language. I still used mostly C since my career was embedded systems, where C++ can be a significant factor in unacceptable code bloat, but the collection is targeted at a broader audience. Besides, I also kept on writing PC utilities and Windows made it necessary that SNIPPETS modules work with C++.
- The SNIPPETS archive was originally targeted at MS/PC-DOS. Obviously, that had to change. The upside of that focus was that SNIPPETS code was useful in systems-level programming. However, as my personal collection evolved, I added explicit support for Win32 and Linux/UNIX/Solaris.
- Since the 80's was the decade of the Great Compiler Wars, the original SNIPPETS collection had scads of conditional code to support multiple PC compilers. The current collection only supports MSVC++/DMC++ and gcc/g++.
- Use it to create a commercial library, or
- Try to claim any copyright - it's all either public domain or freely licensed by the copyright holder(s).