Pick your Look:     Standard - Rising Blue - Retro Curves

Headers - Description

This is a collection of all my header files . These are 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 :

  • stdio.h
  • conio.h

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 :

  • dos.h

View - Download - Executable - Screen Shot

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 :

  • dos.h

View - Download - Executable - Screen Shot

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 :

  • graphics.h (initgraph must be called b4 this can be used)
  • string.h

View - Download - Executable - Screen Shot

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 :

  • stdio.h
  • conio.h

View - Download - Executable - Screen Shot

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 :

  • dos.h

View - Download - Executable - Screen Shot

7. Tsrs.h

A slightly advanced and a little high level variant of Tsr.h .

Depends on :

  • dos.h

View - Download - Executable - Screen Shot

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 :

  • stdio.h
  • conio.h
  • ctype.h
  • string.h

View - Download - Executable - Screen Shot

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 , &quoterror"); stuff .

Depends on :

  • hprintf.h
  • conio.h
  • dos.h
  • stdarg.h

View - Download - Executable - Screen Shot

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 :

  • stdio.h
  • conio.h

View - Download - Executable - Screen Shot

11. Scroll.h

Scrolling in text mode for DOS are provided by these functions.

Depends on :

  • dos.h

View - Download - Executable - Screen Shot

12. Rajesh.h

This is was the first header file I wrote , it basically consists of a function that just prints my name as a ascii art.

Depends on :

  • stdio.h
  • conio.h
  • dos.h

View - Download - Executable - Screen Shot