Ah!!! THANK YOU SO MUCH!
Finally after days of messing with this it now works.
It all came down to that 1! : )
Thanks!
Brian
Type: Posts; User: charIie
Ah!!! THANK YOU SO MUCH!
Finally after days of messing with this it now works.
It all came down to that 1! : )
Thanks!
Brian
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...
Alright, Thanks a lot! I'll look into them. If i find a solution I'll post it.
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...
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...
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,...
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);
...
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"...
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 */...
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...
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...
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...
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...