Snippets
Here you have a complete serie of small programs in C language and scripts (for Bash and Perl in Unix like systems), that they could help you.
Warning: I do not accept responsibility for any damage that these programs may have on you, your computer, or your home. Use them at your own risk.
Licence: This code is completelly free, you can use it for open or close source software, gratuitous or commercial purposes, etc.
Source code examples in C
- calendar-en.c - (ANSI) A portable way to show the calendar of the current month.
- dividator.c - (ANSI) Split words incoming from stdin.
- keybuf.c - (DOS) An ingenious form of avoiding the screech of the keyboard.
- libsuma.zip - (GNU) The simplest form of making a library with the GNU C compiler.
- listarch.c - (DOS) It shows how to generate a complete list of absolutely all the files of a drive.
- menu.c - (DOS) It shows how to make a menu in text mode.
- ordenar.c - (ANSI) It shows how to order an array of integer numbers.
- palabras.c - (ANSI) It separates each word of a sentence.
- pipes.c - (Unix) Communication between two process athwart pipes.
- printf.c - (ANSI) It shows how to print each variable type by means of the function "printf()".
- ptrfunc.c - (ANSI) It shows how to make pointers to functions.
- regex.c - (GNU) How to use regular expression in some program.
- serial.c - (DOS) It gets the serial number of the "C:" drive.
- strtok-en.c - (ANSI) A way to create your own and improved strtok().
- textout.zip - (Allegro) It shows how print text with a different font's type with the Allegro library.
- vesa.c - (DOS) The simplest thing to begin with the VESA.
- vga.c - (DOS) A simple handling of the 13h mode of the VGA.
Perl scripts
- todo - script to handle todo items.
- ynews - script to download news from Yahoo! Argentina and send to you via email.
Scripts Bash
- outlook2mbox - script to convert emails from Outlook to mbox format (useful to translate the Outlook emails to Opera M2)
