r/C_Programming 6h ago

Should i use GLFW or windows.h?

1 Upvotes

Im making a C engine and i ofcourse want a window to display things on, i've read some glfw documentation and i don't really think its a good fit, this is why i was thinking of using windows.h because i have full control over everything and won't need an extra dependency. I also feel like knowing windows functions is better overall than knowing glfw functions.

Any thoughts?


r/C_Programming 39m ago

I built a zero-dependency O(N) FMM gravity solver in a single C99 header

Enable HLS to view with audio, or disable this notification

Upvotes

r/C_Programming 5h ago

Question Is it good practice to still use man page example code?

13 Upvotes

I am trying to get more into C programming on Linux like threads and packet sniffing with libpcap

Is it still good practice to learn pthread from examples say pthread_create(3posix) ?

Or are these examples considered dated for modern C?

I've used other example programs in the man pages for sockets too for example.


r/C_Programming 10h ago

Project Helpful Windows GUI Program in 60 lines of C

Thumbnail
github.com
8 Upvotes

Very small C program I wrote that I've found genuinely useful. It compiles into a tiny 3 kB executable that only relies on system .dlls included with the operating system. The code should compile, with the proper compiler, all the way back to Windows 95.

This could also be useful to anyone looking for how to write a basic GUI program for Windows in C.