CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 13:41:24 GMT
content-type: text/html; charset=utf-8
cf-ray: 963b985b6ad9c1ce-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=cc6937ee-40ca-48ff-be48-f00c8accec22; expires=Thu, 23 Jul 2026 13:41:24 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-frame-options: SAMEORIGIN
x-request-guid: c528fed4-a62e-4f07-9219-7c02ab591582
x-worker-origin-response-time: 416000000
x-dns-prefetch-control: off
set-cookie: prov=cc6937ee-40ca-48ff-be48-f00c8accec22; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=E4AXth3VzFcOl9UCCOV86NTbPJdBTHgcDieDdMeYJts-1753278084-1.0.1.1-PSGoFLfItJx4zXlZaiSr1_K2KyPPEiXbPHDT1KQr5tEvFAmQIE7e0.OWscjtv76d3ESZZgZ_5NWXAkyZG5SZQeowkSjRz49KLKhS.K414sE; path=/; expires=Wed, 23-Jul-25 14:11:24 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=OEuYVWLFd2c2z8BHhFwISCuj6TxH7amj2FurxRqDrzc-1753278084816-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
170
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
201
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
- When you view a historical event with an incorrect modern lens
- Console-based Casino Game in C++
- Ubuntu gives the message "You are in emergency mode."
- Which domain (time or frequency) does filtering actually occur in real-life?
- Define command valid only for a specific environment in expl3
- Why does contact with the ground make my touch-activated LED brighter?
- I wonder whether there exists a book of "Formal power series" and "Formal infinite products"?
- Book/book series including siblings (possibly twins; boy and girl) fighting various creatures from the 2010's
- Idempotent integral operator
- Did Webster's Dictionary define Fascism by its relationship to corporations until 1987?
- Meaning of「えっ、えぇ……」here (spoiler warning for kanokari fans)
- Is a Rakshasa Immune to True Strike?
- How much time should I take for "self transfer" without checked-in baggage?
- Sum of ranks of blocks
- Create a custom filter in WordPress extensions page
- Ubuntu Server installation -- options for boot disks are grayed out
- Error when sending an email with attached PDF using Google Script
- Is there a smooth function approximating the min of a constant and a variable
- Not sure which test statistic to look at with regression with interaction term
- What *IS* switch bounce REALLY? According to evidence. (Not *how* to debounce.)
- At Helsinki airport, connecting from Schengen to non-Schengen flight, is there exit immigration?
- Will a restless MCU survive long enough?
- Dystopian 80s sci-fi movie about the USA choosing mediocrity
- How should a typical reward curve look like while training a RL model