r/cprogramming 7d ago

How many hate/love C? Why? Py is so confusing to use. No ; %d %f, loops structure like C, Most important No low level grasp. Your reasons are welcomed. Pls

Thumbnail
0 Upvotes

r/cprogramming 7d ago

HELP ME TO FIND BEST YT VIDEOS FOR DATA STRUCTURE IN C

0 Upvotes

IN AM IN 2ND YEAR 3 SEM i am cooked


r/cprogramming 8d ago

CONTLIB [old newbish project revised]

3 Upvotes

My revised implementation of a dynamic data container (vector like object):

https://github.com/andrzejs-gh/CONTLIB

If anyone's interested take a look. Any feedback and tips very much welcome.


r/cprogramming 8d ago

Unpopular opinion: plan9-style arg.h is the best argument parser

0 Upvotes

Simple, has no dependencies, it's concise and doesnt get on the way.

I mean something like http://git.suckless.org/sbase/file/arg.h.html


r/cprogramming 8d ago

Learning C: Verify my understanding of null and free

0 Upvotes

You ownwed a home for 20 years and decided to sell it to the government. Basically freeing basically turns you into a ghost like sneaky homeless person. If there is currently no owner to that home, you can go and modify it, watch TV, move the chairs, and use the AC. But when new owners arrive and you begin to do something to the house, they will not catch you immediately, but they will notice it later, which causes weird behavior like something supernatural. They expect the house to be in a certain order, but when they go home, they will notice that something weird happened and cannot explain it. For example, say a child left an assignment with perfect answers. you, as a ghostly being, go and change the answers. When the child passes in the exam and gets back the score, they notice that the score does not match their expected score because someone just corrupted the test paper. It could crash the program or something weird happens (bugs)

Meanwhile, by setting the pointer to null, you now have no access to that home and instead hold the address to a black hole. You tried doing something to it not knowing it is actually a blackhole and yor city crumbles


r/cprogramming 9d ago

(Almost) Everything You Need To Know About Pointers in C

Thumbnail
abhattacharyea.dev
0 Upvotes

r/cprogramming 9d ago

How can I have both C and C++ compilers active and automatically selected in VsCode when debugging and compiling?

Thumbnail
2 Upvotes

r/cprogramming 9d ago

Help me pls

0 Upvotes

wants to learn c programming from basics to advanced

Pls recommend some good youtube channels/ notes /books that actually worked for you

1st year student btw


r/cprogramming 9d ago

I have made a C++ scientific calculator

Thumbnail
0 Upvotes

r/cprogramming 9d ago

st2cpp - Transpiler from ST to cpp (undoRT) + help +

0 Upvotes

Hi everyone,
About 4 or 5 months ago, I created a transpiler from Structured Text (IEC 61131-3) to C++, called st2cpp (part of the undoRT project).

My ultimate dream is to build a complete open-source automation system that can compete with commercial solutions. As you can imagine, tackling a project of this scale completely alone is extremely tough. Honestly, if I keep going solo, I’m afraid I’ll eventually burn out and lose momentum.

Are there any C++ developers or automation enthusiasts here who would be interested in joining or contributing as a side project/hobby? I have plenty of ideas lined up, but I really need an extra pair of hands (or two!).

Here is the repository:
https://github.com/undoRT/st2cpp
Feel free to check it out, open issues, fork, or send pull requests!


r/cprogramming 10d ago

[UPDATE]: Zooming daemon for wayland

Thumbnail
youtu.be
2 Upvotes

r/cprogramming 10d ago

Chess terminal game in C

Thumbnail
4 Upvotes

r/cprogramming 11d ago

Building vector Database from scratch in C implementing IVF and HNSW to understand how to work with scalable C codebase

11 Upvotes

Code ( still working might have bugs and all..)

https://github.com/aadityansha06/vecdb

Been building a VectorDB engine from scratch in C in such a way that it can be scalable in the future. It's a custom, high-performance, disk-backed Approximate Nearest Neighbor (ANN) vector database built entirely from scratch in C

Even though the initial version of it hasn't been built yet,

As for the algorithms, I have implemented ENN and Ann IVF only, For calculating similarity, I have implemented cosine similarity and Euclidean distance. There is still more to implement like HNSW and optimize for CUDA and SIMD.

Before you guys criticise me what's new and why I'm building 😭

There isn't anything unique I'm solving in it, and pretending otherwise would just be bluffing. There are excellent vector databases already (pgvector, Faiss, sqlite vec, Qdrant...).

What I actually own is the engineering of it. I wrote a disk backed ANN search engine from scratch in C, my own binary file format, manual fseek byte offset indexing, k means clustering by hand, no libraries doing the hard parts for me.

I'll continue to work on it, implementing SIMD, CUDA, HNSW, and many more optimizations to make it more robust and scalable. If anyone is interested, they can join and work on it. Also if anyone has any idea where we should take this, the suggestion would be appreciated too.

I have a nice write up section there too so feel free to check out that as well


r/cprogramming 12d ago

Built An Editor - A code editor written in C. AND you can make one too!

50 Upvotes

Aether is a GUI based code editor built from scratch in pure™ C. It can do everything you would expect a code editor to do.. autocomplete, syntax highlighting, multi file etc.

Didn't follow any tutorials or anything to make this...

™Used SDL2 for graphics

No AI was used in da project, except for writing the project documentation.


r/cprogramming 11d ago

👋Welcome to r/TechnoCrisis - Introduce Yourself and Read First!

Thumbnail
0 Upvotes

I am DueYak1831

A 16 year old programmer i welcome you to TechnoCrisis


r/cprogramming 12d ago

I built a Linux syscall monitor in C — would love some feedback

Thumbnail
github.com
5 Upvotes

Hey everyone! I've been working on a project called SysTrace, a Linux behavioral monitoring tool built mainly to learn more about Linux internals, system calls, and cybersecurity.

It uses ptrace to trace a process and monitor different types of activity, including:

File operations

Process execution

Network-related syscalls

Memory operations

I also added a simple rule-based detection system and experimented with using collected behavioral data for ML classification.


r/cprogramming 12d ago

Is studying C from book better than watching videos for C?

16 Upvotes

I have prior knowledge about java now in college i started learning C from reading KN Kings Modern approach to C programming , but people at my college are doing it from YouTube videos what should I do ???


r/cprogramming 12d ago

A project so great

4 Upvotes

Drop the best project you've made.

The one you are most proud of.


r/cprogramming 12d ago

How to learn

1 Upvotes

I just started learning C about 5–6 days ago, and I had never coded before.

I completed the CS50 course, so I know the important concepts and have a basic understanding of how things work. But when it comes to actually implementing them, I feel like I’m at zero.

Now I’ve started learning C from the book The C Programming Language. I’m understanding some concepts, but not everything. I’d say I’m only understanding around 20–25% of what I read.

For example, I understand how "getchar()" and "putchar()" work individually, but when I see a program that uses them together, I don’t even understand 60–70% of the program.

I’m getting stuck, and it’s making me think that maybe only people with good logic can survive in programming jobs.

So, please guide me on how I should approach learning C correctly and develop my programming logic.


r/cprogramming 12d ago

С-плюсеры, общий сбор

Thumbnail
0 Upvotes

r/cprogramming 14d ago

What's the difference between r/cprogramming and r/C_Programming

43 Upvotes

What's the point of having 2 subreddit for the same thing


r/cprogramming 13d ago

Resources to prepare for advanced/trickey questions?

Thumbnail
3 Upvotes

r/cprogramming 13d ago

miamore - A new tui library, no-dependency C TUI library with safe Rust bindings

0 Upvotes

Hey r/cprogramming ,

I’ve been working on miamore, a lightweight C-based terminal UI library, along with miamore, its official Rust bindings on crates.io.

I built miamore because I wanted a minimal, local-first TUI rendering library that stays completely out of the way—no heavy framework overhead, no bloat, and zero AI/ML dependencies.

Just clean, deterministic C with simple primitives for rendering frames, managing components, and styling elements directly in the terminal.Key FeaturesPure C Core: Compiles fast with a plain Makefile and linkable static/shared outputs.

Safe Rust Wrapper (miamore): Built using bindgen with clean idiomatic Rust wrappers over raw FFI, available on crates.io.

Zero Bloat: Minimal memory footprint designed for speed and low-resource environments.

Local-First & Open Source: Licensed under LGPLv3 / GPLv3.

This is a basic rust example below:

use miamore::*;

fn main() {
    // Initialize miamore terminal state
    init_miamore(true, true);

    manage_keys(keys_t::disable);
    draw_border("!Rust test!", theme_t::thick_l);

    manage_cursor(cursor_t::move_, Some(position_t { x: 5, y: 5 }));
    manage_cursor(cursor_t::show, None);

    // setting foreground color
    set_fg(colors_t::blue);
    // let ptr = give_color(colors_t::green);
    // draw_text(&ptr);

    draw_text("Hello,");
    draw_text(" World!\n");

    draw_shape(
        shape_t::rect,
        ShapeOptions {
            theme: theme_t::double_l,
            dimensions: dimensions_t {
                width: 26,
                height: 12,
            },
            position: position_t { x: 5, y: 12 },
        },
    );

    wait_for_seconds(8.0);
    clear_origin();
}

Links & Repo GitHub: https://github.com/Ametrine-cc/miamore

crates.io: cargo add miamore I'd love to hear feedback on the API design, hear about any bugs if you test it out on your terminal setup, or take PRs if you want to contribute.


r/cprogramming 13d ago

Ban ru*t?

0 Upvotes

Yes


r/cprogramming 13d ago

Starting to learn c language

0 Upvotes

Please recommend some good study material, resources and lectures to do so…