Skip to main content

Questions tagged [c]

C is a general-purpose computer programming language used for operating systems, games, and other high performance work and is clearly distinct from C++. It was developed in 1972 by Dennis Ritchie for use with the Unix operating system.

3 votes
1 answer
458 views

I am learning to write an arrows-only, Term only foundations in C, because I noticed Lean4 has types and terms, so I thought maybe it would be nice to have term as the basic building block. Please ...
Attila Vajda's user avatar
3 votes
1 answer
736 views

Is there any way to improve my spaghetti as a new C programmer? I'm both trying to make my program functional and nice, as well as easy to debug, and I've done a lot for this, can the codebase be ...
Unknownias's user avatar
9 votes
2 answers
858 views

This is my first time doing any kind of serious coding in C. I watched a Youtube video on what an Arena Allocator should do and I tried my best to make an implementation for it. As of now, we have the ...
Aron Cauê's user avatar
7 votes
6 answers
789 views

Is there a more direct way (loop-free) to compute this number than computing a level and then going back? ...
CPlus's user avatar
  • 1,467
8 votes
1 answer
107 views

I have recently implemented a Mandelbrot set visualizer, which I used to reacquaint myself with multithreading using pthreads. I'm just wondering whether the way ...
blablatruck's user avatar
5 votes
2 answers
365 views

I want to begin by sincerely thanking the community for the invaluable feedback on my previous BRESort byte-sorting research. Your insights about enums, named constants, loop optimizations, and test ...
LazyCauchPotato's user avatar
7 votes
4 answers
687 views

I've created BRESort - an adaptive sorting engine that dynamically selects optimal algorithms based on data patterns. It achieves 3.6-4.2x speedup over stdlib qsort ...
LazyCauchPotato's user avatar
5 votes
4 answers
783 views

This is a reservations app with linked lists for insertion and BST for search. It uses CSV files for storage, recursion for printing and handles memory allocation for variable growth. I'm looking for ...
Attila Vajda's user avatar
2 votes
2 answers
124 views

Native Messaging host in C. Documentations Chrome Developers MDN Web Docs Microsoft Edge Developer documentation Messaging between the app and JavaScript in a Safari web extension Native messaging ...
guest271314's user avatar
3 votes
2 answers
390 views

I started implementing my own hashmap in C after taking inspiration from Git's hashmap API. As far as I know, the closest thing to templates in C are macros. I've seen that they are used in uthash or ...
Husto's user avatar
  • 103
4 votes
3 answers
233 views

This program is an expansion of the sorting utility built in previous chapters of K&R's 2nd edition of ANSI-C Programming. It parses command-line arguments to determine which fields to sort by and ...
rusty98k's user avatar
7 votes
4 answers
1k views

I am trying to solve the 909th challenge of Project Euler. It is basically about replacing specific patterns in a string until no pattern is found. A given string like ...
polfosol's user avatar
  • 319
2 votes
1 answer
140 views

Repo The complete program: GitHub repository How it works After you have cloned the above repository, change directory inside it and type make in order to compile ...
coderodde's user avatar
  • 32.3k
11 votes
4 answers
1k views

I am reading "The Linux Programming Interface" by Michael Kerrisk. I'm studying about sockets, and I made a simple application using sockets on the unix domain. I want to know if I'm using ...
Super Tux's user avatar
  • 313
4 votes
1 answer
112 views

I am currently working on implementing lock-free stacks and queues. So far, they seem to function properly in test programs, but I am unsure if there are any underlying issues or areas for improvement(...
untitled's user avatar
  • 141

15 30 50 per page
1
2 3 4 5
274