Search:

Type: Posts; User: fudgecode

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,305

    strsep basic question

    hello forum,

    again i fall down onto a basic problem. i took this code from the manpage of strsep:



    char **ap, *argv[10], *inputstring;

    for (ap = argv; (*ap =...
  2. Replies
    7
    Views
    9,155

    argv[0] is the first argument and in this case...

    argv[0] is the first argument and in this case the called program. this must not be NULL(at least on *nix). you need an argument to the execve system call, no?
  3. Replies
    7
    Views
    9,155

    so simply put something like: ...

    so simply put something like:




    if(len(argc)<5)
    {
    printf("charming");
    }
  4. blocked on read/recv / how to read/send proper buffers

    hello forum,

    i am somehow stuck with a beginner networking problem. i generally do not know how to read/recv all data to process it. for instance, taking this example:



    file =...
  5. Replies
    4
    Views
    7,522

    right, there were some other OS in the wild ;)

    right, there were some other OS in the wild ;)
  6. Replies
    2
    Views
    947

    thanks giove, as well for the range advice,...

    thanks giove, as well for the range advice, always awesome to trap into such bugs :D
  7. Replies
    4
    Views
    7,522

    my two cents: 1. from your commandline i...

    my two cents:

    1. from your commandline i suspect you code onto linux, i am not that familiar with linux in include files, on bsd for this to work you will need at least(coding in c not c++)


    ...
  8. Replies
    2
    Views
    947

    return int[] / is this possible?

    hello forum,

    hope this is my last question about returning datasets. i tried it this time with an int array, which looks for me something like this int array[]; when trying this with the shown...
  9. Replies
    2
    Views
    1,302

    of course! thank you! :)

    of course! thank you! :)
  10. Replies
    2
    Views
    1,302

    return fd_set / select problem

    hello forum,

    i have this code:



    fd_set *askfd(int s, fd_set a)
    {
    FD_ZERO(&a);
    FD_SET(s,&a);
  11. Replies
    9
    Views
    2,950

    no problem, you just trying to help and i lack of...

    no problem, you just trying to help and i lack of explaining what i am looking for.

    now, lets assume i have those a message from a remote system and i know the protocol, so i know the first 4...
  12. Replies
    9
    Views
    2,950

    you seem not to understand my problem. i do not...

    you seem not to understand my problem. i do not care how the data is send or recieved. what i do care is to process this information. means i want to navigate through a recieved buffer.
    and pack...
  13. Replies
    9
    Views
    2,950

    good question why i am not using sendto, i have...

    good question why i am not using sendto, i have to read about this function. but this is not solving the point itself. as the send ip address and port was just an example to make myself clear. it...
  14. Replies
    9
    Views
    2,950

    process socket buffer from binary protocol

    hello board,

    i am new here and in c as well. i try myself on network programming(a simple binary protocol), the simple tasks are working so far but i am stuck at progressing a received buffer.
    ...
Results 1 to 14 of 14