r/cprogramming • • Aug 24 '26

Open-source Nintendo 64 encryption app and wallet generator, needs volunteers to review code

0 Upvotes

I proposed and helped fund an app called retro-crypto, which is being developed by a programmer called bowler-bear: https://github.com/bowler-bear/retro-crypto

It's designed to become the most secure way to message friends or store a Bitcoin stack, but it can't be recommended for more than testing yet. I think at the current stage, the next thing it needs is to have others look at the code and try to find vulnerabilities. I'm not a programmer myself.

"Given enough eyeballs, all bugs are shallow" -Linus's Law


r/cprogramming • • Jun 30 '25

Suddenly header explosion of a recently working project

0 Upvotes

SOLVED, THANKS!
hi, first post here, I'm a little frustated rn, yesterday all the code compiled perfectly, today I opened VScode and this generalized problem appears, none of the include files of my project are currently working. This means that ALL the identifiers are "undefined", indeed, it seems that none of the .h files are being included.

I post here because it seems to not have nothing to do with stm32 environment, I think it just a intellisense or something like that. PD: I've already tried restart the intellisense database.
Context: Programming Stm32 with cortex-debug extension and stm32 extension (CMake)
OS: linux mint


r/cprogramming • • Jan 12 '24

A mascot for the C language

0 Upvotes

I came across a meme where there are many mascots of programming languages, even C++ has a mascot and I thought that maybe the C language needs one too and I have two options: tardigrades or tirex🦖


r/cprogramming • • Oct 10 '22

C language security improvement

Thumbnail self.c_programming
0 Upvotes

r/cprogramming • • Feb 24 '24

Are multi-byte hexadecimal number representations affected by endianness?

0 Upvotes

In short, will 0x00FF be 255 on one computer, and 65280 on another, or will it always be 255?


r/cprogramming • • Mar 12 '21

Printing address with array and pointer in c

Thumbnail
gallery
0 Upvotes

r/cprogramming • • May 18 '24

problems with the compiler for C language i suppose

0 Upvotes
greethings, lately i've been trying to learn C but when i try to run this simple code that i've copied by hand and it dosen't want to run

#include <stdio.h>

int main()
{
    printf("Hello World");
    return 0;
}


when i click the RUN button it always spills out this code no matter which code i run



[Running] cd "c:\Users\User\Desktop\Dio Porco\" && gcc E_andiamoo -o c:\Users\User\Desktop\Dio Porco\E_andiamoo && "c:\Users\User\Desktop\Dio Porco\"c:\Users\User\Desktop\Dio Porco\E_andiamoo
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find Porco\E_andiamoo: No such file or directory
collect2.exe: error: ld returned 1 exit status

[Done] exited with code=1 in 0.316 seconds

r/cprogramming • • Aug 26 '26

Help me with this issue in C !

0 Upvotes

So, recently I have been trying to build my own Pac Man game in C with Railyb.

Everything was going fine until I added this magical walls. So basically I wanted 2 walls to be drawn on screen when my player reached some x, y coordinates, the walls get drawn but the collision does not happens. I am so tired, I have been trying to fix this for 2 straight days.

I would really appreciate if some body helped me.

C source file on my Github : https://github.com/saielsh/Unfinished-Pac-Man-game


r/cprogramming • • Sep 05 '26

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 • • May 20 '26

I built a DSA library in C, it got selected in an open-source program, looking for contributors

0 Upvotes

I built C_DSA_interactive_suite, a fully modular, console-based DSA library written entirely in pure C11. No frameworks, no abstractions. Just raw C, manual memory management and real implementations built from scratch. The codebase has a clean modular architecture with one .h/.c pair per module, reusable APIs across modules. A single interactive executable as the entry point, Valgrind-clean memory, CI/CD on every push, and .clang-format enforced style throughout. The project just got selected in SSOC, an open-source program similar to GSoC and I am the project admin, which means this summer, project is open for contributiors! If you've been wanting to:

  • Start your Open Source journey

  • Contribute to a real C codebase with proper architecture and planning

  • Implement something like AVL trees, heaps, priority queues, tries, Dijkstra, or DP

  • Get your hands dirty with actual C, not school level C

  • Have your contribution acknowledged by a reputable community

This is your shot. Everybody else is doing MERN. Come touch some real memory. I'm available to walk anyone through the codebase, clear doubts, explain concepts, or help you get your first PR merged. No gatekeeping. Register as contributor for SSOC. Only 5 days left - https://www.socialsummerofcode.com/ GitHub: https://github.com/darshan2456/C_DSA_interactive_suite Drop a comment or open an issue if you're interested. Let's build something worth putting on a resume.

here is personal discord server link - https://discord.gg/MWv949G8h join it if you want to contribute to my project in any way


r/cprogramming • • Sep 12 '26

What are pointers?

15 Upvotes

I am new to C programming and i came through pointer. So can anyone tell what are they and why we need them? And if u can then can you give me reliable source to learn it.


r/cprogramming • • Mar 03 '26

Need help in understanding C

1 Upvotes

Hello, I am a first-year, second-semester college student. I have been studying C programming since the beginning of my college, but I have been very confused about how it works. I’ve read books and watched videos, but it still feels difficult to understand. I only understand the basic concepts up to printf and scanf. Beyond that—topics like if-else, switch-case, and sorting algorithms like bubble sort—are extremely hard for me to grasp. Also, if someone asks me to write a C program for something like the Fibonacci series, I just freeze. I understand what the Fibonacci series is, but I don’t know how to think through the logic or translate it into code. I couldn’t attend my first-semester final exam due to personal reasons, but I’m pretty sure I would have ended up with a backlog anyway. Do you have any recommendations on how I should study and improve my understanding of C programming?


r/cprogramming • • Jun 08 '26

Working On A Type-Safe, Generic Cross Platform, Freestanding C Programming Library

0 Upvotes

https://github.com/brightprogrammer/MisraStdC

Current features :

  1. A small set of generic containers, almost like C++

  2. A small set of cross platform API to interact with OS

  3. Freestanding (no-libc) if you enable it at compile time

  4. I like the current type-safe formatted printing solution

  5. Pure C11

  6. Compiler errors when working with mismatching types, because of design and usage of the library itself.

  7. A set of allocators, very strict on checking for memory errors, each suited for a specific allocation purpose. Almost like Zig.

  8. A visionary developer (me ;-)

More things incoming. I'm focusing on benchmarking and finding out where I can squeeze more performance, and keep all this transparent and public so it's easier for devs (users) to make decisions on what to do.

Note: I started this library way before the git history shows. This library used to live in different projects, and used to be independently available in there, slowly I noticed the pattern that I keep using these so I made this into a library. Because of this, I have spent a significant amount of time experimenting with the design of the library, I have been the first user of it. As time advanced, and my career progressed and I had less and less time to maintain it, I switched to taking help of coding agents to help me prototype my ideas faster, because I already had the clear vision of how I want the code to look. I know many people are skeptical for AI usage in this age and time, but I urge you to take a peek inside code before rejecting on surface. If you find any slop then I'm ready to work with you, but I've given my best to not let any AI slot enter the codebase. I carefully monitor each work to my best extent and I try my best to keep a good standard. There is \`CODING-CONVENTIONS.md\` that I created out of the process of working with coding agents, that might be worth a read if you are interested :-)


r/cprogramming • • Feb 02 '25

Homework help, new to C

0 Upvotes

I'm tasked with making a program that takes in two real numbers x and y, and returns x2 + y2 if x >= 2 * y, and if x < 2 * y returns x2 - y2 . I have to use %g for result. When i turn it in my teach sends me back that the program doesn't work for numbers he chose. I tried them after and i can't see what was wrong. His test numbers were 4366.7970 and 1378.2440. I would appreciate your help.

We use the latest version of code::block with MinGW gcc compiler.

My code is posted below.

Edit: idk why the code is pasted like that sorry?

#include <stdio.h> int main(){     float x, y, f;     scanf("%f %f", &x, &y);     if(x >= 2 * y){         f = x * x + y * y;     }     else{         f = x * x - y * y;     }     printf("F je %g", f);     return 0; }

r/cprogramming • • Oct 22 '22

Started my programming journey 2 monts ago as I'm studying Bachelors in CSE(Computer Science and Engineering) to reach my future goal to become a Game dev .Also my first post In reddit . Hope I can get to know many people around here 😸💜.

1 Upvotes

r/cprogramming • • Jan 20 '24

Why doesn't my code work?

1 Upvotes

I am brand new to this, I'm just starting with like no experience. I know this is going to seem a bit childish, but this is the code I'm working on. I thought it'd be hilarious if I made something that resembled a chatbot since so far I've learned the printf and scanf functions, as well as variables in my programming class. I saw online that using %[^\n]s causes scanf to read the user input up to the next line and store it in the variable I set. Problem is, it works fine for the first input, then prints the rest of the text without prompting another user input. Any ideas what I need to change in this code? (also apologies if I formatted this post wrong, I'm not familiar with this sub)

#include<stdio.h>

int main()

{

char ans1\[100\];

char ans2\[100\];

char ans3\[100\];

setbuf(stdout,NULL);

printf("Hello! I am ChatECK!\\nWhat is your name? ");

scanf("%\[\^\\n\]s", ans1);

printf("LMAO %s DEEZ NUTS!\\n", ans1);

printf("Ask me anything! ");

scanf("%\[\^\\n\]s", ans2);

printf("%s DEEZ NUTS!\\n", ans2);

printf("Tell me something about yourself: ");

scanf("%\[\^\\n\]s", ans3);

printf("%s DEEZ NUTS LOL!\\n", ans3);

printf("Thanks for chatting with me!");

return 0;

}

The output ends up with this after I enter my name:

Hello! I am ChatECK!

What is your name? Eliminator152

LMAO Eliminator152 DEEZ NUTS!

Ask me anything! ��a DEEZ NUTS!

Tell me something about yourself: DEEZ NUTS LOL!

Thanks for chatting with me!


r/cprogramming • • Nov 13 '24

Is graphics.h for c or c++

0 Upvotes

I installed graphics.h in hope to use in my c project but when I tried to build the project this error message appeared:

/mingw/include/graphics.h:30:10: fatal error: sstream: No such file or directory

30 | #include <sstream> // Provides std::ostringstream

| ^~~~~~~~~

compilation terminated.

ninja: build stopped: subcommand failed.

thanks in advance for any help


r/cprogramming • • Jul 31 '26

After one week learning C

0 Upvotes

Yeah, my anxiety is hitting pretty hard right now... lol.


r/cprogramming • • May 15 '26

Help with learning?

1 Upvotes

i want to learn C in a interesting way other than reading doc. As I'm more of a visual learner then reading text.

I have watched yt videos but most good onces are old.
Any suggestions on how?
websites / Games or anything?


r/cprogramming • • Oct 06 '26

300 lines of code just to receive one packet

0 Upvotes

So i have been exploring eBPF,XDP, so I made a packet capture path by using xdp hook that redirects to my AF_XDP socket . I am using copy mode currently .

But seriously this gives me vibes of opengl . But here I have too much control over the path. I am still new to this . Many times when things do not work i think I am wasting my time because no one in my batch is even doing these things . But ig this is what I like. Also I just buy a Esp32 also . So you can give me some ideas that I can work on with it


r/cprogramming • • Apr 05 '22

Hello everyone can someone help me with these errors I don’t know what to do 😭😭

Post image
8 Upvotes

r/cprogramming • • Feb 25 '24

People who mention 1s complement are being pedantic.

0 Upvotes

Every time I ask a question on SO, someone comes out of the woodwork to either explicitly mention 1s complement or allude to its existance. It happened so many times that I sat down and went down the rabbit hole to find out what the difference is.

Apparently 1s complement has a positive and negative 0 and works by negating ones and zeroes instead of flipping them or something. I forgot, but the important thing that me and you can immediately pick out is that it won't work with most of the modern bitshift techniques and stuff because of the way it is.

Furthermore, there is a whole thread explaining how vastly irrelevant 1s complement in modern times is. The last relevant use of it was 40 years ago, and the only instances of people ever needing it is when supporting highly specialized archaic telephony architectures or whatever.

Outside of academic curiosity, and working on archaic architectures as a senior wizard developer, everything points to 1s complement having no place in the modern world.

Thus mentioning it in one or several comments in bit-related threads on StackOverflow, is really pedantic and utterly unhelpful, not to mention confusing.


r/cprogramming • • Apr 19 '21

Hey, in need of some assistance. Very new to C

0 Upvotes