Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

Filter by
Sorted by
Tagged with
4 votes
2 answers
304 views

BRESort - Bitwise Relationship Extraction - Intelligent Adaptive Sorting Engine for 32/64-bit & Floating-Point Data

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
580 views

My BRESort adaptive sorting engine in C

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
721 views

Reservation app in C with linked list, BST, and CSV

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
95 views

C Native Messaging host

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
357 views

Hashmap in C (with templates?)

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
207 views

Field Sorting , ANSI-C/K&R 2ED, Exercise 5-17 brainstorming

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

Project Euler #909: L-Expressions I

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
136 views

ds (directory switcher): a *nix program for tagging directories with (short) tags and switching between them via tags

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
  • 31.9k
11 votes
4 answers
1k views

A simple server-client application in C

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
107 views

Lock-free queues and stacks

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
14 votes
5 answers
2k views

I implemented FFT in C

I wrote Cooley-Tukey's FFT algorithm in C. And I want to know how safe is this code? Is it just trash? How can I make it more memory safe? ...
RudraSama's user avatar
  • 181
6 votes
0 answers
164 views

Markdown parser library in C

For a side project, I needed a markdown parser and I decided to roll my own. It is a SAX-style parser, i.o.w. you can hook into parser events on consumer side and do whatever you want with the content....
Quanta's user avatar
  • 161
8 votes
1 answer
594 views

Shared-Memory Queue Implementation in C

Recently I am working on implementing a shared-memory based IPC message queue in C programming language on Linux system. A few design choices I've made include The queue will have only 1 producer, ...
Yukun Jiang's user avatar
11 votes
2 answers
1k views

Parsing HTTP headers in C

I'm new to C and just finished K&R. This is a code that I've written to parse headers of a HTTP request. I want to know if my code: Is safe? (after all this is C) Does proper exit on failure? Are ...
Mehan Alavi's user avatar
10 votes
6 answers
2k views

k-Nearest Neighbors algorithm in C

I've been learning C for a while, and I decided to make a simple kNN program. What can I do to improve the program? Am I doing memory management right? Can the structure of the code be improved in ...
Super Tux's user avatar
  • 313

15 30 50 per page
1
2 3 4 5
274
Morty Proxy This is a proxified and sanitized view of the page, visit original site.