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,...
Type: Posts; User: Dren
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,...
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....
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...
YouTube
Also, this might be of use Main Page [Pelles C Wiki].
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]...
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.
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...
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...
Interesting development: I got a
warning: suggest braces around initialization of subobject [-Wmissing-braces]
warning: missing field 'struct member heret' initializer...
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...
Greetings folks,
I have the following main:
t_dserver display_server;
t_scene scene;
if (argc == 2)
{
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...
Pardon my lack of faith. It was as simple as you said. My hats off to you sir.
:claps
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...
@Click_here LMAO :)
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...
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...
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...
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...
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...
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...
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...
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...
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,...
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.
...