This is an archive of the site as it was in May 2009. Please go to www.rajeshgoli.com/ for latest content.
RajeshGoli.com
- Thoughts on Technology and life...
Headers - Description
This is a collection of header files that I used in most of my computer engineering or information technology projects and programs. Be advised that these may be generally non-portable header files.
Programs - Headers (12)
1. Typer.h
This header file has two cool functions , typer() and typer_loop() . They type a given text message as in the movie The Matrix ( I am a big fan of that movie ) Demonstartion program matrix.c can be downloaded from here matrix.c . You can view matix.c from here .
Depends on :
View - Download - Executable - Screen Shot
2. Head.h
Well after making typer.h I was thinking how good it would be if I could make this typer run in some sort of multithreaded program. I mean I wanted typer like dynamic highlighting being done continuously on my program when my program was doing useful.
How would I do it? Bingo! I could use the timer interrupt . So did I and the final code is here.
Depends on :
3. Cur.h
When I was using typer.h and head.h , I found the cusor very irritating , it would blink erratically , In order to hide and restore cursors in text mode I wrote this header file.
Depends on :
4. Pb.c
Provides Pushbutton routines in graphics mode. Functions to draw , create rollover and create clicked effects for pushbuttons. You can regard rig.c as a example code for this library.
Depends on :
5. Hprintf.h
Suppose you want to highlight some charecters in a sentence . Suppose you want to have different colors for different letters in a sentence. How would you do it? This is the function for you . It takes the string to be printed along with delimiters and colors as arguments.
Let us see the syntax -
__hprintf("I [a]m <R>ajesh" , LIGHTGRAY , "[<" , "]>" , RED , WHITE);
Well what does this do? It simply higlights anything between a '[' and ']' with RED and anything between '<' and >>' with WHITE.
Depends on :
6. Tsr.h
This header file provides functions that perform console i/o by directly writing to VDU memory , useful for TSRs and also other Programs.
Depends on :
8. getnum.h
I found scanf("%d",&n) to hang at the slightest pretext , it would allow non-digit charecters , and then hang . In order to remove this problem I wrote a function which would allow only digits to be entered and would use more stable sscanf instead . This header contains those functions.
Depends on :
9. Status.h
A status / error / warning displayer which displays them at a fixed position with some formatting and color code instead of plain old fprintf(stderr , "error"); stuff .
Depends on :
10. Passwords.h
To get a password in C is a lil difficult task , so these functions . They do not encrypt or decrypt passwords mind you! They just mask the password on screen.
Depends on :
Search
Articles
Portfolio
Styles
Ads by Google