| Clip Name | Description | Functions and Concepts Demonstrated |
| bit_count.c | A method for counting bits in a computer word. This is much faster than looping thru 32 shifts and tests. | Bit shifting, masking |
| pdm.c | Use ANSI C's pre-defined macros to document program information. | __DATE__, __TIME__, __LINE__, __FILE__ |
| sorted.c | not ready for publication | qsort(), bsearch() |
| Clip Name | Description | Functions and Concepts Demonstrated |
| comma_edit.pl | Edit commas into a number in the American fashion. | s |
| date_time.pl | Determine date for today, last Friday, and the previous Friday. | localtime(), date manipulation |
| fork_watch.pl | The main program watches the execution of the child so action can be taken if the child dies or stalls. | fork, kill, $SIG |
| seq_no.pl | Use a small file to keep track of sequence numbers from one execution of a program to the next. | file I/O |
| Clip Name | Description | Functions and Concepts Demonstrated |
| sp.ksh | Create, execute and check the results of a very simple stored procedure. (Oracle) | stored procedure, create, replace, execute |
| Clip Name | Description | Functions and Concepts Demonstrated |
| ftpauto.ksh | Place ftp transfers in a shell script. | ftp |
| hi_res_time.c | Find time of day to better than one second resolution. I find it convenient to have this code in a subroutine that prints the first few characters of a line on stderr (timemsg.c). | gettimeofday(), ctime() |
| memuse.c | A method to track memory use in a C program on an HP/UX machine. | memorymap(), memory leaks |
| reverse.txt | Use vi to reverse the sequence of lines in a text file | vi commands: g, m |
| seq_num | Add sequence numbers to lines of text data. | grep, head, tail |
| sys_conf.c | Determine the machine architecture and several other interesting things for an HP-9000 (HP/UX). | sysconf() |
| unspace.ksh | Check the names of the files in the current directory. If any contain the space character convert it to underbar. | tr, for loops in ksh |
| Clip Name | Description | Functions and Concepts Demonstrated |
| frame sets | A page with nested framesets. | Links an externa page. |
| keywords | Make your pages more search engine friendly. | META |
| refresh | Refresh the current page or automatically go to a new page after a delay. | |
| unframe | Make sure a page is not shown in someone elses frameset. |
| Clip Name | Description | Functions and Concepts Demonstrated |
| cbaids.h | Several little routines that are helpful in C programs. Nothing remarkable, just helpful at times. | |
| graphics | Mix of things I've worked on. Not at all scollarly! | |
| greenbar.pl | A filter which received ASCII text on stdin and wraps it with HTML to give a simulated greenbar on stdout. | |
| sdump.c | An interpreted dump program with eye catchers for both ASCII and EBCDIC. I wrote this when I first started working for UNIKIX and was learning C and UNIX. Never had reason to go back and clean up the code, but I certainly use it a lot. |
[ home ]