Hi. I'm trying to get my program to work using job control. I want to be able to use the parent process to spawn child programs on-demand, or by user input.
The problem I've been trying to...
Type: Posts; User: soj0mq3
Hi. I'm trying to get my program to work using job control. I want to be able to use the parent process to spawn child programs on-demand, or by user input.
The problem I've been trying to...
Claudiu - I understand what you're saying. I got it to work, just not the dynamic part (yet). The query that I make is huge (40,000 char's), and I was able to fit it on the stack. Thank you.
I'm about to jump off of a roof. Here's the meat & potatoes code:
char *make_new_query(char *hd)
{
int i, j, k;
char hard_drive[4];
char buffer[5];
char...
I'm simply returning the current pointer from the function. Thanks anyways!
It looks like your code is processing both the key press, as well as '\n'.
Struct:
typedef struct tnode {
int id;
char *artist;
char *title;
char *remixer;
char *label;
Oh, snap! Thanks claudiu! I didn't see that one!!! Aaaah! I meant to make that a pointer! It works! Thank you both!
Here's the structs for my window(s):
struct _display {
int top_limit;
int bottom_limit;
int current;
int max_y;
int max_x;
Thanks. I don't know why I didn't do that. Probably I didn't think it was necessary. That did the trick.
Yeah, I originally had it set up like that but thought that it was the source of my...
Here's the structure:
typedef struct tnode {
int id;
char *artist;
char *title;
char *remixer;
char *label;
OK, thanks. I've got it now. I really appreciate this help.
I think so. I made your changes and my code works. So my init function is fine the way it is because I'm assigning to the pointer itself? When it's like my init function, that's really the only...
OK. As I understand, if I just want to access the values (not modify them), I pass by reference. If I want to modify the values, I pass a pointer to a pointer to a structure (I thought that was...
Thanks MK27. I don't completely understand, but, it compiled without errors now.
Whenever I pass a structure by reference to a function I should always use the (*struct)->member notation?
I have a structure declared like:
typedef struct _sqlite {
int rc;
int ncol;
int nrow;
char *db_name;
sqlite3 *db;
sqlite3_stmt *stmt;