Search:

Type: Posts; User: tar

Search: Search took 0.00 seconds.

  1. Thread: Linked List Help

    by tar
    Replies
    3
    Views
    861

    Thanks for the pointers, this code now works. My...

    Thanks for the pointers, this code now works. My question is what should I do if the malloc were to fail when adding a new node? Free up the list? Return the list without adding the new node? If I...
  2. Thread: Linked List Help

    by tar
    Replies
    3
    Views
    861

    Linked List Help

    I am having trouble with the code below, for some reason there are no recipients in my linked list. I think it's a pointer problem. Also in my rcpt_add function is it best to return the head of the...
  3. Thread: Simple problem

    by tar
    Replies
    6
    Views
    950

    argh it's been a rough day, thanks for the help.

    argh it's been a rough day, thanks for the help.
  4. Thread: Simple problem

    by tar
    Replies
    6
    Views
    950

    Thanks for the pointers dwks, now why can't I...

    Thanks for the pointers dwks, now why can't I compile this? Isn't it the same thing?


    #include <stdio.h>

    void testfun(char *buffer);

    int main(int argc, char **argv) {
    char buf[2];...
  5. Thread: Simple problem

    by tar
    Replies
    6
    Views
    950

    Simple problem

    What's wrong with this code? I am trying to use gcc to compile.


    #include <stdio.h>

    void testfun(buffer) {
    printf("%s\n", buffer);
    }

    int main(int argc char **argv) {
  6. Replies
    6
    Views
    1,816

    Okay I will try that, thanks.

    Okay I will try that, thanks.
  7. Replies
    6
    Views
    1,816

    Yes it does do something, it inserts 1 node.

    Yes it does do something, it inserts 1 node.
  8. Replies
    6
    Views
    1,816

    I should add that it seg faults when I try to...

    I should add that it seg faults when I try to print the tree and this is due to root being NULL after the inserts, which it should not be. What am I doing wrong that is causing root to be NULL after...
  9. Replies
    6
    Views
    1,816

    Binary Tree Question

    I am getting a segmentation fault when I run this code and I know why, root is NULL in main but I don't know why it is null. Any suggestions? Thanks



    //proc.c
    #include <stdio.h>
    #include...
  10. Thread: Modem Programming

    by tar
    Replies
    0
    Views
    1,551

    Modem Programming

    With the code below I am trying to send "AT\r" to the modem and I am expecting "OK\r" back but I am not getting it, I am getting "AT\r" back. Any ideas or pointers? Also I know I am opening the...
  11. Replies
    4
    Views
    1,419

    I know about google. I was just looking for some...

    I know about google. I was just looking for some suggestions on what would be the best way to approach this problem.
  12. Replies
    4
    Views
    1,419

    X Windows Programming Question

    I am developing a C program that runs on FreeBSD. I need to be able to display image data in X Windows and I am looking for a simple way to do this. I don't need any kind of image format decoders, I...
Results 1 to 12 of 12