zfuncs and zfuncstest
This is a package of various utility programs that were used in building the other applications on this web site. Technical documentation (APIs) is included. A menu-driven test program (zfuncstest) for most of the functions is included. The makefile builds zfuncstest.
Some Included Functions
Some Included Functions
|
zappcrash
catch_signals zsleep detached_thread zmalloc cpu_profile UTF-8 utils MatchWild SearcWild bsearch HeapSort bitmap wprintx textwidget gmenuz zdialog pixbuf_rotate queue tree |
crash with backtrace including source code line numbers
do zappcrash for segment fault and some others suspend for any time > 0.001 seconds start threads with no risk of zombies memory allocation with tags, report statistics per tag measure cpu time per function or chosen code block character memory position <--> character graphic position match strings having multiple * and ? wildcards find files using multiple * and ? wildcards anywhere in path binary search a list of numbers or strings sort a list of numbers, strings or records maintain a bitmap (create, set, get, destroy) printf() strings to GTK text widget, also read via scanf() get clicked lines or words from a text widget custom graphic menu which app user can arrange to taste simplified GTK dialogs, asynchronous fast image rotate through any angle (20 megapixels/sec) C++ queue class C++ tree class (arbitrary data indexed by names or numbers) |
C-code to create this dialog and receive user inputs (click for larger image)