This video is really great. https://www.youtube.com/watch?v=QpAhX-gsHMs
In the following code I want to have a loop in a macro that uses a counter variable of the same type as a struct member. A value of the struct is passed into the macro. #incl...
I can tell you why: it encourages the programmer to organize their code into units (objects) that sound nifty but are usually not descriptive, or even that well related, to th...
Of course it won't be pure C then anymore. It's like C but using one of the features of C++ but who can afford to be a purist about anything in the complex and challenging wor...
So... I'm thinking that constexpr is such a useful thing that it might be worth compiling C code as C++ so I can use that. Is that a bad idea?
So, I've got gcc 11 and I want gcc 14. I say sudo apt install gcc and it says I've got the latest version. What do?
I asked an AI to be angry and hypercritical about libc and this is what it came back with 😂 What a joke libc is! This so-called "C library" is nothing but a cesspool of ineff...
When you make a telegram bot you can add a user pic for it with the bot father but I wanted to change it and now it has two in there. How do I delete the first? I don't see a ...
@TRGWII I updated my words finder to use the new style. I don't know how to write it without using sprintf and fwrite, and I figured memcpy was harmless, so those are still in...
You know there are some apps that have git as a kind of backend database. Is that a good idea? I mean git is a collection of binaries so isn't that pretty slow having to start...
Chris Wellons says he compiles his code in a single translation unit. Does that mean he doesn't write header files too?
Hm, then why is he compiling as one translation unit? For performance reasons?
In Chris Wellon's post Arena allocator tips and tricks he states "Objects are not explicitly freed. Instead, all allocations from a scratch arena are implicitly freed upon ret...
Can anyone recommend a good place to get an email address that isn't google, facebook, or microsoft?
Greetz peeps, Internal storage of Android devices seems to fill up a lot over time and seems to be hard to find out why or what's using the space. I saw a video of an ex-Appl...
So this doesn't leak memory? void f(void) { char * foo = malloc(100); // foo not returned } int main(void) { while(true) { f(); } }
OK, let's try this. Start a new project. Put hello world in there and go to the menu and choose compile. What happens?
I've been using typedef unsigned char chr in my code so that I used unsigned char normally for my characters. Seems like the right thing to do. Now I want to start using -Wall...
In Haskell there's this thing called newtype where you can wrap a value in a type that can be type checked but when the code is compiled it will be removed as if it was never ...
Are you trolling me right now?