Search:

Type: Posts; User: Sir Galahad

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    56

    Funny thing is just how prevalent MD5 is out in...

    Funny thing is just how prevalent MD5 is out in the wild, even after so many years of being exposed as completely broken. This library, for example, is a dependency of a whopping 150000+ repos. Wow!
  2. Replies
    55
    Views
    1,537

    Have you verified that the file exists on your...

    Have you verified that the file exists on your computer? If not, you may need the Windows equivalent of the Linux libwxgtk-dev package (see here). If you do however find it, then just be sure to add...
  3. Replies
    5
    Views
    335

    Nice thing about C is it hasn't changed much over...

    Nice thing about C is it hasn't changed much over the years. C++ on the other hand, the newer stuff is hardly recognizable IMHO.
  4. Replies
    5
    Views
    335

    You think that's bad. My C++ harkens back to the...

    You think that's bad. My C++ harkens back to the Jurassic period!
  5. Replies
    6
    Views
    305

    @Malcolm McLean...

    @Malcolm McLean Nice set of utilities!
  6. Replies
    6
    Views
    305

    Nope, looks like a 404. ...

    Nope, looks like a 404.


    galahad@cmc563:~/tmp$ git clone https://github.com/MalcolmMcLean/babyx
    Cloning into 'babyx'...
    remote: Enumerating objects: 89, done.
    remote: Counting objects: 100%...
  7. Replies
    5
    Views
    335

    Try to use functions whenever possible. Also,...

    Try to use functions whenever possible. Also, scanf and fgets don't play well together. Better to use sscanf instead.



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    char*...
  8. The code is incorrect, that's why. You need to...

    The code is incorrect, that's why. You need to ensure that the index is less than `argc`. Period.
  9. Replies
    8
    Views
    279

    Oh okay. Kind of annoying that a compiler would...

    Oh okay. Kind of annoying that a compiler would support an extension by default though. Code would be way more portable if that sort of thing would raise an error/warning instead.
  10. Replies
    8
    Views
    279

    The code at the bottom is my signature. And both...

    The code at the bottom is my signature. And both compile just fine (tested with gcc and clang on linux).
  11. Replies
    8
    Views
    279

    No? int main(void) { int $ = 0; }

    No?



    int main(void)
    {
    int $ = 0;
    }
  12. Replies
    4
    Views
    271

    Ah, right! It's only UB with signed values...

    Ah, right! It's only UB with signed values...
  13. Replies
    4
    Views
    271

    It's undefined behaviour. Best thing to do is...

    It's undefined behaviour. Best thing to do is check before the subtraction.
  14. Replies
    8
    Views
    357

    Because you're effectively erasing its current...

    Because you're effectively erasing its current value here:



    y=d+=w;
  15. Replies
    4
    Views
    690

    If you don't have control over the output file...

    If you don't have control over the output file then your only real choice is to read it in binary and just do trial and error adjustments to account for alignment, data-widths, endian-ness, and...
  16. Replies
    5
    Views
    283

    You can use strcmp() to compare strings. Here's...

    You can use strcmp() to compare strings. Here's another function that does non-case-sensitive comparisons to test for equality:



    #include <ctype.h>

    int strlike(const char* left, const char*...
  17. Closed source AND highly platform specific? Yeah...

    Closed source AND highly platform specific? Yeah that's a real winner all right...
  18. Replies
    4
    Views
    288

    At this point the whole toolchain is rather just...

    At this point the whole toolchain is rather just a hodge-podge of coexisting technologies. The good news is it's not as bad as you think. You can in fact compile and run a simple C program on just...
  19. Thread: Function

    by Sir Galahad
    Replies
    3
    Views
    209

    Yep. Write a little code, compile and run,...

    Yep. Write a little code, compile and run, inspect the output. Rinse and repeat...
  20. Well exactly. We are all brothers and sisters on...

    Well exactly. We are all brothers and sisters on this Earth. Lacking kindness only serves to suck all of the good out of a person, not to mention the effect it has on others.



    It's weird that...
  21. Replies
    4
    Views
    329

    Well "possibly in set" necessarily implies...

    Well "possibly in set" necessarily implies inexact matching, so no. They just help speed up the whole process by skipping patterns which are "definitely not in set". And also relatively easy on...
  22. And I apologize for implying such a thing, that...

    And I apologize for implying such a thing, that was rather unfair of me.The internet just seems to have developed this cold-hearted culture over the past few years. I really gets to me! Anyway, I was...
  23. Hardly surprising, if you ask me...

    Hardly surprising, if you ask me...
  24. That is true, there would be certain things the...

    That is true, there would be certain things the compiler could do to help optimize things. But as far as being able to determine the exact relationship between all of the different operators, that's...
  25. Replies
    16
    Views
    1,142

    Looks good. A little cleaner way to implement...

    Looks good. A little cleaner way to implement those operators would be to first code a "compare" function that returns -1, 0, or 1 (ie: less, equal, greater) and then simply define all of the other...
Results 1 to 25 of 141
Page 1 of 6 1 2 3 4