CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 07:49:44 GMT
content-type: text/html; charset=utf-8
cf-ray: 9641d29629e5c467-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=b7f8da3a-91d2-4009-aa69-5b8860937bd3; expires=Fri, 24 Jul 2026 07:49:44 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 041218fe-6100-41d7-8a91-24c8c3a16ca9
x-worker-origin-response-time: 444000000
x-dns-prefetch-control: off
set-cookie: prov=b7f8da3a-91d2-4009-aa69-5b8860937bd3; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=dpHsHmYhBT9UHzh399a_cG1WPqIHXLThc7c3ldOcH7c-1753343384-1.0.1.1-MRL16fZtwhEeRvHDYKDeEhlepCV1aumGUDFpBk7eRJXhKKi1Jea2bAeQQBXI837.h0aU78iXswPWCbY6LBvonAGINM1A7IXxXlC7EctXzQ0; path=/; expires=Thu, 24-Jul-25 08:19:44 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=8QhewgSvnvrwFR_Wwq2Xz7En4ILGy.OtDtqbA4Kj4EQ-1753343384516-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'c99' Questions - Code Review Stack Exchange
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 ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [c99]
C99 is a standard for the C programming language. It replaces the previous C89 standard, and is succeeded by the C11 standard. C99 added inline functions, C++-style comments, allows intermingled declarations and code, as well as multiple other language and library fixes and additions.
68 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
4
votes
1
answer
287
views
200 line Brainfuck Interpreter
I wrote a simple brainfuck interpreter in C99. Coming from a background of C++ made the task easier, but still there is some stuff I had to get used too. The program accepts a path to a brainfuck file ...
5
votes
2
answers
160
views
Generating Pascal's Triangle in C99
I recently completed the Pascal's Triangle challenge on leetcode. I would like to have my code reviewed.
You don't need a leetcode account to see the description of the challenge linked above, but for ...
8
votes
1
answer
150
views
Simple reminders timer in C99 for POSIX
This is my first time trying out C. Simplicity was the main objective. Signals are not handled and memory is not freed (program is very small, and the OS should take care of that when program exits).
...
3
votes
3
answers
141
views
Solution to Codejam 2021 1C (Closest Pick) in C
The following code is my solution to the Closest Pick problem from Codejam 2021.
You are entering a raffle for a lifetime supply of pancakes. N tickets have already been sold. Each ticket contains a ...
8
votes
1
answer
321
views
Solution to Codejam 2019 1A (Pylons) in C
The following is my solution to the Pylons problem from Codejam 2019: https://codingcompetitions.withgoogle.com/codejam/round/0000000000051635/0000000000104e03.
Our Battlestarcraft Algorithmica ship ...
4
votes
3
answers
153
views
Simple photomosaic generator
I wrote an implementation of Robert Heaton's Programming Exercise for Advanced Beginners #4 (photomosaics) in C99 using the MagickCore library. The full code is as follows:
...
2
votes
1
answer
392
views
Generic insertion sort
I implemented a generic insertion sort routine that can sort an array of any type. It's similar to the qsort function from the standard library. My goal it to optimize the code for readability above ...
1
vote
2
answers
171
views
Implementation of Hashtable in C99
I tried implementing a general purpose hashtable in C99.
The basic structure is I have a huge array of hashtable entries and each entry is the entry point to a doubly linked list so that in case there ...
2
votes
2
answers
5k
views
A simple logging library in C
I've created a simple logging library in C which I can use in my other projects. I wanted to get started in software development using the C language, and this is my first attempt at writing something ...
1
vote
1
answer
52
views
OAuth implementation for Puredata
I am managing an OAuth implementation for Puredata (Pd), which is written in C. OAuth can accept RSA keys, but Pd cannot send messages with newlines, so placing private keys will come as a list of ...
7
votes
2
answers
3k
views
C code to convert hexadecimal string to base64
I've written a program to convert a hex-encoded string to base64, and here is my code. My main concerns are:
Optimizations - Is my code sufficiently optimized and if any more optimization is possible....
2
votes
2
answers
167
views
C99 - An alphanumeric random char generator
I have built a very small program that is a command line utility for generating alphanumeric characters of a certain length (up to a max. length) called randchars.
<...
1
vote
2
answers
111
views
Function to remove set of trailing characters from string
I needed the ability to truncate the trailing end of path strings in a routine that builds new search paths as it recursively searches directories. After not finding what I was looking for I created ...
8
votes
1
answer
185
views
3
votes
1
answer
202
views
C99 JSON parser/writer
About
I've decided to challenge myself and write a JSON parser in C99 (i've written them in C++ before, but never in plain old C), and here's what I ended up with, it works well from what I've tried.
...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
c × 66
performance × 8
strings × 7
linked-list × 6
beginner × 5
file-system × 4
posix × 3
linux × 3
formatting × 3
algorithm × 3
console × 3
stack × 3
base64 × 2
ascii-art × 2
array × 2
brainfuck × 2
compression × 2
error-handling × 2
file × 2
hangman × 2
interpreter × 2
json × 2
more related tags
Hot Network Questions
- In this video why are the astronauts wearing only their flight suits during dragon training while in others they are in their full starman suits?
- TeX development in C instead of Pascal
- How Fill Date Series Without Formatting Using Keyboard Only
- In QGIS installed via OSGeo4W on Windows 11, what is the path to the command history file for the Python console?
- rotated `\check` symbol
- Can authors be blacklisted by academic publishers for multiple rejections without any ethical misconduct?
- Differential amplifier layout: closer to MCU or Load?
- Does Philosophy Need Quotes?
- Huge Difference in Interaction P-values Between Linear vs. Ordinal Regression (0.991 vs. 0.001)
- Is a chemistry-first technological paradigm as plausible as one focused on physics or biology?
- Enterprise finds crashed spaceship, crew repairing it but it's a false hope
- Processing All Files [0-9]*tex
- What fiction genres do literary agents recognize?
- What was the Russia-Germany 1996 "Defence pact" that Russia recently announced has been terminated?
- Render / Convert .midi / .mid to FLAC on Linux
- Did Webster's Dictionary define Fascism by its relationship to corporations until 1987?
- Have philosophers ever defined a notion of "luck" or "surprise" that is separate from probability?
- OId Movie about an alien city that plays a repeating melody
- Camera Controls Stopped Working
- Why were two 2x6 boards installed on top of a window rough sill?
- Can a humanoid that fell supine and is then Levitated alter his orientation?
- What was the source of the image of pelican in Catholic churches?
- Harthshorne II 5.8
- Where did the name of Windows XP come from? Was it connected to the Cairo project?