← back to the dumpster fire

BASIC C EXAMPLES

The repo where I learned C by making the most cursed shit possible
(and somehow it works... occasionally)

This is the place where absolute beginners (and me) can learn C by reading code that looks like it was written by a sleep-deprived raccoon that just discovered malloc. And here are the 'Cool' tags

C beginner-friendly(or is it?) Parental Advisory kernel modules that will haunt you

// basic projects & lectures

PRNG For Beginners

Random number fuckery.

Lectureish (the "boring" part)

Intro LecturesreallyBasicThings/basics/


Pointer InfernoreallyBasicThings/pointerHell


Dynamic Memory ShitreallyBasicThings/DynamicMemoryShit/


_IFNWIN32 "Yippie" Partpreprocessor/

// math fuckery (I have a problem)

CLI Math Fuckery

Geometry Fuckery

π Fuckery (yes it needs its own folder, I'm a gamba addict)

DSP Fuckery

Physics Fuckery

// forcing silicon into thinking

reallyBasicThings/makingMachineGoHmm/

The part I try to make machines go hmm...
(Can't say achieved it yet tho)

// low-level stuff (enter at your own risk)

WARNING: Kernel drivers can fuck your system bad. Eldritch Horrors levels of bad. Use a VM (QEMU or whatever). These work on bare metal too... which is somehow worse.

Kernel Drivers

Functional ones:

Non-functional / failed attempts:


Networking


Other low-level chaos

// retro shit

// funny things

thingsThatSupposedToBasicButOverengineeredForNothing/

// CLI tool clones

From the "Rediscovering America" series

// how to actually compile this shit

Most files are pure C. Some need raylib or math.

# Ubuntu / Debian
sudo apt install clang

# Arch
sudo pacman -Syu clang

# Fedora
sudo dnf install clang
cc filename.c -o output
cc filename.c -o output -lraylib -lm # when the file needs it
./output

Raylib setup guide: official wiki
Windows ports? Lmao no. This is Linux territory. Windows sux.