Search:

Type: Posts; User: micmac700

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,642

    SIGSEGV, Segmentation fault

    Here is my initiating code:

    #define NUM 20

    static struct tab {
    int count;
    int use;
    } tab[NUM];

    int curtab = 0;
  2. Thread: Array Struct

    by micmac700
    Replies
    3
    Views
    1,246

    Array Struct

    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];
  3. Replies
    14
    Views
    1,566

    so should it be

    so should it be
  4. Replies
    14
    Views
    1,566

    yea im confused on C, still learning.

    yea im confused on C, still learning.
  5. Replies
    14
    Views
    1,566

    and the struct tty that I am adding

    and the struct tty that I am adding
  6. Replies
    14
    Views
    1,566

    got: tt

    got:
    tt
  7. Replies
    14
    Views
    1,566

    This is the original

    This is the original
  8. Replies
    14
    Views
    1,566

    with that fix i get this error tty.c:232:...

    with that fix i get this error


    tty.c:232: warning: file does not end in newline
    tty.c:18: redefinition of `struct tty'
  9. Replies
    14
    Views
    1,566

    Errors in compile

    am im missing something stupid?
  10. Replies
    4
    Views
    2,946

    Making use of queue.c

    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...
  11. Replies
    3
    Views
    1,737

    Well for starters, how can i implement a Queue in...

    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...
  12. Replies
    3
    Views
    1,737

    Queue stuct - Please Help

    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); ...
Results 1 to 12 of 12