Category : C Source Code
Archive   : TOOLS4C.ZIP
Filename : TOOLS4C.H

Output of file : TOOLS4C.H contained in archive : TOOLS4C.ZIP
/******************************* TOOLS4C.H ********************************
Universal Version

Copyright (C) BP Software Solutions, Inc. 1987
All Rights Reserved

typedef struct WNDW {

int left_col_line_char;
int upper_row_line_char;
int right_col_line_char;
int lower_row_line_char;
int ulcorner_char;
int urcorner_char;
int llcorner_char;
int lrcorner_char;

int fill_char;
int line_attr;
int fill_attr;

int left_col;
int upper_row;
int right_col;
int lower_row;

int curr_row;
int curr_col;
int buf_size;
struct WNDW *prev_wndw;
struct WNDW *next_wndw;
char *image;
} WNDW ;

/*************************** FUNCTION PROTOTYPES *************************/

extern void draw_box(int,int,int,int,WNDW *,int,int);
extern void draw_ex_box(int,int,int,int,WNDW *,int,int, unsigned int);
extern void fill_box(int,int,int,int,int,int);
extern void fill_area(int,int,int,int,int,int);
extern int open_window(WNDW *);
extern int open_ex_window(WNDW *,int);
extern void fill_window(WNDW *);
extern void clear_window(void);
extern void close_window(WNDW *);
extern void move_window(WNDW *, int, int);
extern int create_window(WNDW *);
extern void shuffle_image(WNDW *, char *);
extern void activate(WNDW *);
extern void cursor_window(int,int);
extern void scroll_window(int, int);
extern void wprint_string(char *);
extern void wprint_string_att(char *,int);
extern void right_just_str(char *,char *,int);
extern void center_str(char *,char *,int);
extern void left_just_str(char *,char *,int);
extern void insert_str(char *,char *,char *,int);
extern void title_window(WNDW *,char *,int,int);
extern void clear_wndw_title(WNDW *,int);
extern void wprintf(char *,... );
extern void fprint_window(WNDW *,char *,...);
extern void aprintf(int,char *,... );
extern void print_string(char *,int);
extern void write_str(int,int,char *,int);
extern void delete_leading(char *);
extern void delete_lead_wht(char *);
extern void delete_trailing(char *);
extern void delete_trl_wht(char *);
extern void v_line(int, int, int, int, int);
extern void h_line(int, int, int, int, int);
extern void vert_line(int, int, int);
extern void write_al(int,int,int,int);
extern void write_am(int, int, int);
extern void write_a(int,int);
extern void write_tty(int);
extern void write_ac(int,int);
extern void cls(void);
extern void normal_cursor(void);
extern void block_cursor(void);
extern void curs(int);
extern void cursor(int,int);
extern void cursor_size(int);
extern void cursor_shape(int);
extern void get_cursor(int *, int *);
extern int get_curs(void);
extern int key(void);
extern int shift_stat(void);
extern int char_waiting(void);
extern int vid_type(void);
extern void video_on(void);
extern void video_off(void);
extern void set_vid_mode(int);
extern int get_vid_mode(void);
extern void save_scn(int,int,int,int,char *);

extern void rest_scn(int,int,int,int,char *);
extern void scroll(int,int,int,int,int,int,int);
extern int change_att(int,int,int,int);
extern int get_field(char *,int,int,int,int);
extern int edit_field(char *,int,int,int);
extern int sys_year(void);

#define BELL 7
#define TRUE 1
#define FALSE 0
#define OK 0
#define ERROR -1

/***************** Define NIL depending on Memory Model *******************/
#ifndef NIL

#ifdef __TURBOC__
#if defined(__TINY__) || defined(__SMALL__) || defined(__COMPACT__)
#define NIL 0
#define NIL 0L

#define NIL 0

#ifdef M_I86MM
#undef NIL
#define NIL 0L

#ifdef M_I86LM
#undef NIL
#define NIL 0L

#ifdef I8086P
#undef NIL
#define NIL 0L

#ifdef I8086L
#undef NIL
#define NIL 0L

/*************************** End of NIL definition *************************/

  3 Responses to “Category : C Source Code
Archive   : TOOLS4C.ZIP
Filename : TOOLS4C.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: