Search:

Type: Posts; User: zedoo

Search: Search took 0.00 seconds.

  1. Thread: casting pointers

    by zedoo
    Replies
    6
    Views
    1,432

    good, thanks.

    good, thanks.
  2. Thread: casting pointers

    by zedoo
    Replies
    6
    Views
    1,432

    Thanks Grumpy. lets say now that i copyy those...

    Thanks Grumpy.

    lets say now that i copyy those bytes each one after another into a freshly allocated BYTE Buffer and cast the thing back into a struct test pointer, e.g. like this:



    BYTE * b...
  3. Thread: casting pointers

    by zedoo
    Replies
    6
    Views
    1,432

    unfortunatly i cannot change that functions...

    unfortunatly i cannot change that functions signature because it comes from a library...
  4. Thread: casting pointers

    by zedoo
    Replies
    6
    Views
    1,432

    casting pointers

    hi,

    i have:



    struct test{
    int a;
    int b;
    char c[20];
  5. Thread: exec and pipes

    by zedoo
    Replies
    5
    Views
    2,082

    Thanks for the reference. felix

    Thanks for the reference.

    felix
  6. Thread: zombie analysis

    by zedoo
    Replies
    2
    Views
    2,180

    thanks salem, i know that i need to call wait()...

    thanks salem, i know that i need to call wait() ... but this is not the point of interest.

    just to mention, i resolve the child zombie thing by calling sigaction() and setting SA_NOCLDWAIT (only...
  7. Thread: zombie analysis

    by zedoo
    Replies
    2
    Views
    2,180

    zombie analysis

    Hey,

    first i will post my code, then i say what happens when i start the program.



    int fork_service(service_t *s){
    int pid;
    pid = fork();
    if (pid == -1){
  8. Replies
    1
    Views
    1,317

    define from lib.h in myheader.h

    hi,

    have myheader.h



    struct bla{
    int blubb[AN_INT_DEFINED_IN_LIB.H];
    };
  9. Thread: exec and pipes

    by zedoo
    Replies
    5
    Views
    2,082

    this looks cool. thanks for the popen hint.

    this looks cool. thanks for the popen hint.
  10. Replies
    1
    Views
    2,282

    determine file type

    hi,

    in my previous post i said i have a char *filename and want to determine whether the file (given it exists) is executable (either a binary or a #! file)

    my solution is now to search the...
  11. Thread: exec and pipes

    by zedoo
    Replies
    5
    Views
    2,082

    ok this works with redirection tricks and is well...

    ok this works with redirection tricks and is well explained here:
    http://www.ecst.csuchico.edu/~beej/guide/ipc/pipes.html
  12. Thread: exec and pipes

    by zedoo
    Replies
    5
    Views
    2,082

    exec and pipes

    hi,

    i have a char* filename and want to determine if the file is an executable file.
    first, which is the best way to find that out? i have chosen to use the "file" command. i want to make file...
  13. Replies
    10
    Views
    1,537

    Indeed I get no warnings when i remove those...

    Indeed I get no warnings when i remove those casts, and i compile with -Wall



    Hmm, yes i am not a C programmer. What are you exactly meaning? Variable declarations within the code?
  14. Replies
    10
    Views
    1,537

    Thanks ZuK, this is really the cause.

    Thanks ZuK, this is really the cause.
  15. Replies
    10
    Views
    1,537

    ok this is it. basically i read something from...

    ok this is it. basically i read something from stdin, make a hash of it and store that hash + the name inside a node. if i insert "h" then i dont want to hash the "h" but instead just print the...
  16. Replies
    10
    Views
    1,537

    simple list iteration

    hi,

    i have something like this:



    typedef struct node {
    node *next;
    char *data;
    } node_t;
Results 1 to 16 of 17