Here is my initiating code:
#define NUM 20
static struct tab {
int count;
int use;
} tab[NUM];
int curtab = 0;
Type: Posts; User: micmac700
Here is my initiating code:
#define NUM 20
static struct tab {
int count;
int use;
} tab[NUM];
int curtab = 0;
in my .c file i have a struct atop of the program defined as follows:
#define MAX 10
int curtab;
static struct tab {
int count;
int use;
} tab[MAX];
so should it be
yea im confused on C, still learning.
and the struct tty that I am adding
got:
tt
This is the original
with that fix i get this error
tty.c:232: warning: file does not end in newline
tty.c:18: redefinition of `struct tty'
am im missing something stupid?
I am working on a program that uses interrupts and a buffer to read/write characters from/to the console screen. (This is a tty.c program with ttywrite(), ttyread(), ect...)
I also have a given...
Well for starters, how can i implement a Queue in tty.c that includes the queue.h library?
At the top of tty.c would I have something like
typedef struct MyQ{
Queue *q;
}MyQ;
and then...
I am really stuck...please help
If i have a file queue.c that contains:
int init_queue(Queue *q, int max_chars); make a new empty queue, filling in *q
int enqueue(Queue *q,char ch); ...