Search:

Type: Posts; User: charIie

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    3,933

    Ah!!! THANK YOU SO MUCH! Finally after days...

    Ah!!! THANK YOU SO MUCH!

    Finally after days of messing with this it now works.

    It all came down to that 1! : )

    Thanks!

    Brian
  2. Replies
    13
    Views
    3,933

    Okay, I believe I found what I need to do. ...

    Okay, I believe I found what I need to do.

    First off, hci_read_remote_name() is putting the device name into char name[248].
    Then, I try to pass char name[248] into my structure which takes char...
  3. Replies
    13
    Views
    3,933

    Alright, Thanks a lot! I'll look into them. If i...

    Alright, Thanks a lot! I'll look into them. If i find a solution I'll post it.
  4. Replies
    13
    Views
    3,933

    I still don't really understand how I can...

    I still don't really understand how I can printf(name) and the correct name comes out, but when I save the name as a char* in my linked list, it is random letters.

    I would assume that it would be...
  5. Replies
    13
    Views
    3,933

    So, that would mean that the bluetooth function...

    So, that would mean that the bluetooth function hci_read_remote_name does not add the '/0' character at the end of the char*? Meaning I would need to add that? Or should I pass it into the b_push_end...
  6. Replies
    13
    Views
    3,933

    I've come to the conclusion that the problem does...

    I've come to the conclusion that the problem does not lie in that code I have provided. The real problem lies in this code:




    memset(name, 0, sizeof(name));
    if (hci_read_remote_name(sock,...
  7. Replies
    13
    Views
    3,933

    I've been looking into the problem a little...

    I've been looking into the problem a little farther. I have tried adding to the list two other ways. For example:


    /* Creates data for the combo box */
    b_poplist(&b_list);
    ...
  8. Replies
    13
    Views
    3,933

    From #include GList *g_list_append(...

    From #include <gtk/gtk.h>
    GList *g_list_append( GList *glist, gpointer data );

    I was reading up on combo boxes from http://www.gtk.org/tutorial/x1065.html

    list = g_list_append( list, "Hello"...
  9. Replies
    13
    Views
    3,933

    GTK GList Append Error

    I'm having an issue with appending a GList to the dropdown of a combo box.



    /* Creates data for the combo box */
    b_poplist(&b_list); /* Creates a linked list of bluetooth devices */...
  10. Replies
    8
    Views
    3,896

    Thanks a lot for all of your help. I found some...

    Thanks a lot for all of your help. I found some documentation that helped me out with pointers so I figured I'd share for anyone else having trouble.

    http://cslibrary.stanford.edu/103/

    I've...
  11. Replies
    8
    Views
    3,896

    Okay, that makes more sense. I have fixed up my...

    Okay, that makes more sense. I have fixed up my code (hopefully) and attempted to continue on. I have encountered another problem which is related when passing a pointer from main.

    First off here...
  12. Replies
    8
    Views
    3,896

    To ssharish2005: Thanks, that worked like a...

    To ssharish2005: Thanks, that worked like a charm.

    To Salem: I must have missed that. I have heard it was better to use calloc(max_rsp, sizeof(inquiry_info) instead because it initializes...
  13. Replies
    8
    Views
    3,896

    Warnings with Pointer In Linked List

    Hello, I just found this board due to some unresolved trouble I've been having with a program I'm writing. When I compile (on gcc) I receive this warning.

    b_poplist.c:48: warning: assignment from...
Results 1 to 13 of 13