Search:

Type: Posts; User: john.c

Page 1 of 20 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    3
    Views
    164

    Yeah, it works for me too. Apparently he just...

    Yeah, it works for me too.
    Apparently he just doesn't know what a url is.
    I was trying to encourage him to ask questions better instead of just saying "it doesn't work".
  2. Replies
    3
    Views
    164

    In what way is it "not functioning properly"?...

    In what way is it "not functioning properly"?
    What OS are you using?
    How are you compiling it?
    Also, this isn't a url: "Online kaszino Magyarorszag – 2024 legjobb oldalai"
  3. Simplistic example #define _POSIX_C_SOURCE...

    Simplistic example


    #define _POSIX_C_SOURCE 200809L

    #include <unistd.h>
    #include <stdio.h>
    #include <sys/wait.h>

    int mysystem(const char *command) {
  4. Replies
    2
    Views
    2,099

    An ISR is a running program (hence "routine"). So...

    An ISR is a running program (hence "routine"). So a core (perhaps the only core) will be running it.
    Interrupt handler - Wikipedia

    There is something called DMA where a subsystem of the computer...
  5. Replies
    43
    Views
    1,920

    Base 30. Uninitialized input. Out-of-bounds...

    Base 30.
    Uninitialized input.
    Out-of-bounds access.
    The trifecta!
  6. Replies
    8
    Views
    1,443

    @aghast, you should post your source for this...

    @aghast, you should post your source for this information. Presumably this or similar:
    How to parse tokens separated by whitespace in C++ preprocessor? - Stack Overflow
    I assume the typeof idea is...
  7. Replies
    8
    Views
    1,443

    The problem is that there is no way to run C code...

    The problem is that there is no way to run C code at the preprocessor stage, and the preprocessor itself doesn't have any string processing capability built in, let alone a "de-stringify" operator to...
  8. Replies
    8
    Views
    1,443

    Your "ugly" way is the only way.

    Your "ugly" way is the only way.
  9. Replies
    43
    Views
    1,920

    Clearly you've never had a thought in your life.

    Clearly you've never had a thought in your life.
  10. Replies
    43
    Views
    1,920

    Salem's (obviously untested) code started the...

    Salem's (obviously untested) code started the loop at 0 instead of 1, an easy mistake to make from "muscle" memory. It was supposed to be something like this.


    #include <stdio.h>
    #include...
  11. Replies
    43
    Views
    1,920

    Why don't you try thinking for yourself and...

    Why don't you try thinking for yourself and figuring out the small mistake in Salem's code.
  12. Replies
    12
    Views
    2,501

    I see you may not want this anymore, but had a...

    I see you may not want this anymore, but had a little time to look at it today and I think the following works.

    The dump of the returned message looks like this:


    45 00 00 30 00 00 00 00 3C...
  13. Replies
    12
    Views
    2,501

    Looking at this again, I see that I accidentally...

    Looking at this again, I see that I accidentally used / instead of \ for my hex characters in the string (!), and also since my machine is little-endian I need to swap the bytes at the end of the...
  14. Replies
    12
    Views
    2,501

    Perhaps your program was waiting for a response...

    Perhaps your program was waiting for a response and stole the response from the other ping program (if that's possible).
    Here's an implementation based on the RFC example C code that might work:

    ...
  15. Replies
    12
    Views
    2,501

    I hadn't looked at it closely, but it clearly has...

    I hadn't looked at it closely, but it clearly has some issues (&gt; is how you write > in html, as you probably know). It does make me wonder if it's even a (robustly) correct calculation. Hers's the...
  16. Replies
    12
    Views
    2,501

    I think you need to set icmp_cksum properly....

    I think you need to set icmp_cksum properly.
    Ping in C - GeeksforGeeks
  17. Replies
    14
    Views
    1,048

    I didn't say a mouse was a solution. I said to...

    I didn't say a mouse was a solution.
    I said to try it to see if it works.
    It DOES NOT work for me, with either the touchpad or the mouse.
    Anyway, you obviously don't want my help so I'll leave you...
  18. Replies
    14
    Views
    1,048

    Try a mouse. Neither seems to work for me. The...

    Try a mouse. Neither seems to work for me. The terminal seems to be eating the mouse clicks.
  19. Replies
    14
    Views
    1,048

    Presumably you are using the ncurses library....

    Presumably you are using the ncurses library.
    What exactly is your compile line?


    You say you tried it on Linux and it worked fine. So does it work on Linux or not?

    EDIT:
    Also, have you...
  20. Replies
    14
    Views
    1,048

    Are you using ncurses itself or are you using...

    Are you using ncurses itself or are you using pdcurses?
    Did you download a precompiled library or compile it yourself?
    Are you compiling your program through mingw or msys2, or just directly on...
  21. Replies
    2
    Views
    1,026

    The article incorrectly calls "\e[1;1H\e[2J" a...

    The article incorrectly calls "\e[1;1H\e[2J" a "regex".
    It is, of course, an ANSI escape sequence.
    ANSI escape code - Wikipedia

    Even Windows seems to respond to these now, although I don't think...
  22. Replies
    24
    Views
    9,593

    What do you mean by with `#here` strcspn says...

    What do you mean by with `#here` strcspn says the position is 0, so it works.

    EDIT:
    If file[x] is a single character (I don't know what the & is for), then you could use strchr backwards,...
  23. Replies
    24
    Views
    9,593

    strcspn does what you want. The 'c' stands for...

    strcspn does what you want. The 'c' stands for compliment, and it counts how many leading characters of your string are not any of the given characters. It returns the length of the string if none of...
  24. Replies
    3
    Views
    3,465

    Try one of these: 0x00ff58 Begin 0x00ff9d...

    Try one of these:


    0x00ff58 Begin
    0x00ff9d KP_Begin

    It's from the list here: https://github.com/linuxmint/gtk/blob/master/gdk/keynames.txt
    Here is the section with the above codes in it:
  25. Replies
    4
    Views
    2,862

    Depending on your system you may also need to...

    Depending on your system you may also need to define _POSIX_C_SOURCE before including stdio.h to use fileno:


    #define _POSIX_C_SOURCE
    #include <stdio.h>
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4