Search:

Type: Posts; User: DavidG

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,398

    It's Unix. (Cygwin, really, but since that's...

    It's Unix. (Cygwin, really, but since that's designed to act like Unix...)

    Thanks for the help with question 3. I'm keeping all the child PIDs in a linked list, so that'd be relatively easy. (The...
  2. Replies
    5
    Views
    1,398

    A few process questions...

    Just a couple of things I need to know about processes:

    1 - is there a way to test if a particular process is still running?
    (assuming you've got its PID, of course)

    2 - is there a way to make...
  3. Thread: char *name?

    by DavidG
    Replies
    4
    Views
    5,659

    To put it simply(ish), a pointer variable isn't a...

    To put it simply(ish), a pointer variable isn't a char, or int, or whatever it's pointing to - it just holds the memory address of whatever it's pointing to. (As an unsigned integer, I believe....
  4. Replies
    8
    Views
    1,771

    Using the search path

    Just wondering... does the execl() function use the PATH environment variable? (Or whatever it's called.)

    If not, how can I get it to? Would I have to split up the search path string manually, and...
  5. Replies
    6
    Views
    2,527

    Next time, Pythagoras. Next time.[/drclaw]

    Next time, Pythagoras. Next time.[/drclaw]
  6. Replies
    17
    Views
    4,230

    He's got a point about the newline though. ...

    He's got a point about the newline though.

    Unless, of course, the output is supposed to be hard to read, just to annoy the teacher.
  7. Thread: one arm chin-up

    by DavidG
    Replies
    29
    Views
    5,529

    I couldn't do it without both arms and a...

    I couldn't do it without both arms and a stepladder. :D
  8. Replies
    10
    Views
    2,340

    Right, thanks. That's a great help, I've always...

    Right, thanks. That's a great help, I've always had a bit of a blind spot with pointers. I'll try it out later.
  9. Replies
    10
    Views
    2,340

    Well, I didn't make the strtok() function myself,...

    Well, I didn't make the strtok() function myself, it's included in one of the C header files, so I have no idea how to make my own version.

    Would doing something like strcpy(cmd.command,...
  10. Replies
    10
    Views
    2,340

    Ah, I see what you mean. How do I give it the...

    Ah, I see what you mean. How do I give it the "input" string to split up? Just give it 'input' instead of 'NULL'?
  11. Replies
    10
    Views
    2,340

    All I know is that strtok() is supposed to return...

    All I know is that strtok() is supposed to return a string... I suppose that'd be a char *, yeah.

    What do you mean by "pass cmd by reference"?
  12. Replies
    23
    Views
    5,615

    Nice. I thought it was a picture of a galaxy or...

    Nice. I thought it was a picture of a galaxy or something, until I saw the text at the top.

    Interesting how it seems to be more concentrated along the lines to the corners, isn't it? Especially...
  13. Replies
    10
    Views
    2,340

    Slight string problem

    This is part of the code from a shell program I'm working on:

    struct c {
    char command[10];
    char argument1[40];
    char argument2[40];
    };
Results 1 to 13 of 13