Q: Where are some collections of useful code fragments and examples?
A: Bob Stout's popular ``SNIPPETS'' collection is available from ftp.brokersys.com in directory pub/snippets or on the web at http://www.brokersys.com/snippets/.
Lars Wirzenius's ``publib'' library is available from ftp.funet.fi in directory pub/languages/C/Publib/.
See also questions 14.12, 18.9, 18.9b, 18.13, and 18.16.