Search:

Type: Posts; User: Dren

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Pellec C IDE

    by Dren
    Replies
    4
    Views
    193

    YouTube...

    YouTube

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

    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]...
  3. Thread: Data type

    by Dren
    Replies
    5
    Views
    122

    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.
  4. Replies
    2
    Views
    143

    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...
  5. Replies
    2
    Views
    143

    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...
  6. 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...
  7. 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...
  8. On trickle down economics... I mean pointers.

    Greetings folks,

    I have the following main:


    t_dserver display_server;
    t_scene scene;

    if (argc == 2)
    {
  9. Replies
    17
    Views
    869

    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...
  10. Replies
    17
    Views
    869

    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
  11. Replies
    17
    Views
    869

    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...
  12. Thread: NULL caseses

    by Dren
    Replies
    13
    Views
    285

    @Click_here LMAO :)

    @Click_here LMAO :)
  13. Thread: debugging code

    by Dren
    Replies
    13
    Views
    260

    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...
  14. Replies
    17
    Views
    869

    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...
  15. Replies
    17
    Views
    869

    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...
  16. Replies
    4
    Views
    352

    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...
  17. Thread: Free List?

    by Dren
    Replies
    5
    Views
    400

    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...
  18. Thread: Free List?

    by Dren
    Replies
    5
    Views
    400

    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...
  19. Replies
    7
    Views
    473

    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...
  20. Replies
    8
    Views
    420

    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...
  21. Replies
    2
    Views
    293

    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,...
  22. Replies
    2
    Views
    293

    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.
    ...
  23. Replies
    3
    Views
    372

    Thank you guys for the feedback. Although...

    Thank you guys for the feedback.

    Although Salem brings some valid technical points, which I’ll touch later, it seems most of the issues you raise pertain to clarity and readability. After much...
  24. Replies
    3
    Views
    372

    Options and argument order in cli programs.

    Hello folks, bit of an odd question here. As far as I know Unix convention normally dictates that each program option that takes an argument should immediately be followed by that argument, e.g ...
  25. Replies
    3
    Views
    364

    At first sight I was going to accuse you of not...

    At first sight I was going to accuse you of not reading my PS, but then I thought
    "Come on, my man Salem is better than that" and on second look I see a compile
    time constant, loop unrolling...
Results 1 to 25 of 102
Page 1 of 5 1 2 3 4