Search:

Type: Posts; User: soj0mq3

Search: Search took 0.00 seconds.

  1. Job Control:: tcsetpgrp(): Fails with 'Invalid Argument'

    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...
  2. I'm OK

    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.
  3. Frustrated: Dynamically Allocating String & Sending Out Of Function

    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...
  4. Solved

    I'm simply returning the current pointer from the function. Thanks anyways!
  5. Replies
    10
    Views
    1,143

    It looks like your code is processing both the...

    It looks like your code is processing both the key press, as well as '\n'.
  6. Problem Modifying Struct Member Passed Into Function

    Struct:



    typedef struct tnode {
    int id;
    char *artist;
    char *title;
    char *remixer;
    char *label;
  7. Oh, snap! Thanks claudiu! I didn't see that...

    Oh, snap! Thanks claudiu! I didn't see that one!!! Aaaah! I meant to make that a pointer! It works! Thank you both!
  8. Problem Allocating Memory For Structure Within Structure In A Function

    Here's the structs for my window(s):



    struct _display {
    int top_limit;
    int bottom_limit;
    int current;
    int max_y;
    int max_x;
  9. Thanks. I don't know why I didn't do that. ...

    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...
  10. Problem With My Append Function For Structure

    Here's the structure:



    typedef struct tnode {
    int id;
    char *artist;
    char *title;
    char *remixer;
    char *label;
  11. OK, thanks. I've got it now. I really...

    OK, thanks. I've got it now. I really appreciate this help.
  12. I think so. I made your changes and my code...

    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...
  13. OK. As I understand, if I just want to access...

    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...
  14. Thanks MK27. I don't completely understand, but,...

    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?
  15. Problem Passing Structure Reference To Function

    I have a structure declared like:


    typedef struct _sqlite {
    int rc;
    int ncol;
    int nrow;
    char *db_name;
    sqlite3 *db;
    sqlite3_stmt *stmt;
Results 1 to 15 of 15