Search:

Type: Posts; User: Dren

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    243

    Thank you dear, you’re an angel. You’ve answered...

    Thank you dear, you’re an angel.
    You’ve answered my concerns and set me straight on a few misconceptions.

    Although, C++ and C are very different languages and this has been the case for awhile,...
  2. Replies
    4
    Views
    243

    If we were to look at overflow as a mere pathway...

    If we were to look at overflow as a mere pathway to security issues or other errors like using a negative number as an array index or reading/writing outside a buffer, I would not have any concerns....
  3. Replies
    4
    Views
    243

    Definitive Guide To Integer Overflow.

    Hey guys,
    Iíve been struggling to find accurate, complete and reliable information on this topic. At best, Iíve gotten partial truths, but mostly, conflicting advice. My go-to for answers, the...
  4. Thread: Pellec C IDE

    by Dren
    Replies
    4
    Views
    280

    YouTube...

    YouTube

    Also, this might be of use Main Page [Pelles C Wiki].
  5. Replies
    4
    Views
    209

    I think it'd be more illustrating to change the...

    I think it'd be more illustrating to change the string manually at this stage.


    #define NULL_TERMINATION 1
    #define STR_SIZE 3 + NULL_TERMINATION

    char *p = malloc(STR_SIZE * sizeof(*p));
    p[0]...
  6. Thread: Data type

    by Dren
    Replies
    5
    Views
    237

    Dammit! you made me spill my coffee. --- Ryanc,...

    Dammit! you made me spill my coffee.
    ---
    Ryanc, you are truly an inspiration. Every time I look at your posts I think to myself, I can do this. You give me hope. Thank you.
  7. Replies
    2
    Views
    186

    Salem, you are a dear :) Second: I meant...

    Salem, you are a dear :)

    Second:

    I meant resolve_julia. I mixed up quite a few things when transplanting my code, including a few identifiers I changed along the way, a curse that plagues my...
  8. Replies
    2
    Views
    186

    Functions as structure members.

    Hi guys,
    Iím still dabbling with graphics, this time working on a fractal explorer and today, on a whim, I came up with this absurd alternative to using an array of function pointers:


    // On a...
  9. Interesting development: I got a warning:...

    Interesting development: I got a
    warning: suggest braces around initialization of subobject [-Wmissing-braces]
    warning: missing field 'struct member heret' initializer...
  10. YES, I like it! You know, deep down I felt...

    YES, I like it!

    You know, deep down I felt there was something off with my solution, I just couldn't pinpoint it to anything specific. Guess that's what drove me here.
    Upon first look at your...
  11. On trickle down economics... I mean pointers.

    Greetings folks,

    I have the following main:


    t_dserver display_server;
    t_scene scene;

    if (argc == 2)
    {
  12. Replies
    17
    Views
    1,080

    I managed to "optimize" it even further into this...

    I managed to "optimize" it even further into this stripped down version.
    Problem is, there was no change in performance. I can only assume this is what
    the compiler ended up with. flp1969 is right...
  13. Replies
    17
    Views
    1,080

    Pardon my lack of faith. It was as simple as you...

    Pardon my lack of faith. It was as simple as you said. My hats off to you sir.

    :claps
  14. Replies
    17
    Views
    1,080

    Integral constants are resolved at compile time...

    Integral constants are resolved at compile time even without optimizations on, so the above expressions end up being: blck_bit_pos = 56 and cmpsd_bit_pos = 28.

    I had the same idea originally, but...
  15. Thread: NULL caseses

    by Dren
    Replies
    13
    Views
    425

    @Click_here LMAO :)

    @Click_here LMAO :)
  16. Thread: debugging code

    by Dren
    Replies
    13
    Views
    390

    You will want to use GDB then, or LLDB if you...

    You will want to use GDB then, or LLDB if you plan on sticking to console based debuggers, it has a much, much nicer text UI.
    Once you start using GDB as a glorified interpreter for C, your eyes...
  17. Replies
    17
    Views
    1,080

    This...

    This.

    No, the S-boxes were provided by the NSA as they are to protect the algorithm against certain type of attacks. Not that it matters today, as DES has been broken for decades.

    I'm not sure...
  18. Replies
    17
    Views
    1,080

    Optimizing hot section of code.

    Greetings everybody, I'm trying to improve the performance of my program and according to my profiling tests, the function below alone accounts for the majority of the execution time, it is the...
  19. Replies
    4
    Views
    494

    Imo, you are going about this the wrong way. ...

    Imo, you are going about this the wrong way.
    Instead of accounting for each individual hand to see what beats what, try to implement a system wherein each card has a value. The strength of a hand...
  20. Thread: Free List?

    by Dren
    Replies
    5
    Views
    471

    Yes, exactly! Iím stealing that term for my...

    Yes, exactly! Iím stealing that term for my function identifiers.

    I have to say linked lists were the first thing that popped into my mind when I first thought of this, but while implementing it I...
  21. Thread: Free List?

    by Dren
    Replies
    5
    Views
    471

    Free List?

    Hey guys,
    After expanding a program I wrote a couple of months ago and finding the memory cleaning section unsightly -bunch of flags and conditions to determine what I must and mustn't free- I...
  22. Replies
    7
    Views
    558

    Well, they've finally done it; the folks at Cern...

    Well, they've finally done it; the folks at Cern have managed to scramble the fabric of space and time, because I vividly remember an alternate reality wherein RyanC was banned for spewing out...
  23. Replies
    8
    Views
    478

    You can use any of the cryptographyic libraries,...

    You can use any of the cryptographyic libraries, like Libcrypto API - OpenSSLWiki to encrypt and decrypt whatever data you want.
    If security is not an issue, pick a fast algorithm, like DES in ECB...
  24. Replies
    2
    Views
    330

    Yes, you’re correct in your assumption. I’m...

    Yes, you’re correct in your assumption. I’m reading the header to obtain the salt and calculate the ivector. And yes, I could copy the header, but I was trying not to. This code is already tested,...
  25. Replies
    2
    Views
    330

    Problem handling file piped into STDIN

    Hello guys,


    I have to read a 16 byte file header that will be piped into my program.
    Normally, I just read the header, process it and continue reading the rest of the file later on.
    ...
Results 1 to 25 of 105
Page 1 of 5 1 2 3 4