CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 21:11:54 GMT
content-type: text/html; charset=utf-8
cf-ray: 963e2c40aea38839-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=9c006e84-e321-4d44-a80f-b2137912c036; expires=Thu, 23 Jul 2026 21:11:53 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: 54b87781-b30c-47c8-9f2c-e7153f0bac28
x-worker-origin-response-time: 345000000
x-dns-prefetch-control: off
set-cookie: prov=9c006e84-e321-4d44-a80f-b2137912c036; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=kDRAsAfZYRaO_lvq_.uZah.kmKjXNjl1oTIMEmeOhQY-1753305114-1.0.1.1-aLo2uWuGtIKHKwrX2MSiabXeIvb2WgI71oE.U06yBhzSD7D7LTC8sfdybbCU.IkYHDTespElY1VbQ.YgvsiAD3uj9c1CiT5wIC76kkKO0Bs; path=/; expires=Wed, 23-Jul-25 21:41:54 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=awspowfMjREodq8sN9sDytFRWubed1FKI_.W.BKOQeA-1753305114059-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'c11' 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 [c11]
C11 is a standard for the C programming language. It replaces the previous C99 standard. C11 added type-generic expressions, alignment support, static assertions, library support for multithreading and unicode as well as multiple other language and library fixes and additions.
35 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
5
votes
3
answers
848
views
Safe(r) / Easier Pointer Allocation Interface in C (ISO C11)
I spent like half an hour programming up a set of functions to make the allocation / deallocate of pointers easier within a bigger project. I felt that they were satisfactory, but was wondering if ...
2
votes
2
answers
157
views
Generic Dynamic Array Implementation
I wrote a dynamic array implementation in ISO C11 using void pointers. Everything I've implemented works--at least in all my tests--on a 64-bit machine. It has some vague type-checking and resizes ...
3
votes
3
answers
434
views
Eliminating "implicit conversion changes signedness" warning using _Generic
I'm using enum in C to have constants for values that can be bitwise-or'd together, e.g.:
...
1
vote
1
answer
86
views
Generic Min() for Integer Types (including Boolean)
This is a follow-up to Generic Max() for Integer Types (including Boolean) and An Attempt at Creating Generic Min()/Max() for Fundamental Types.
What's new:
MIN(), ...
8
votes
2
answers
197
views
Generic Max() for Integer Types (including Boolean)
This is a follow-up to An Attempt at Creating Generic min()/max() for Fundamental Types.
What's Changed:
MIN() has been forsaken for the time being.
Mixed types ...
9
votes
4
answers
1k
views
An Attempt at Creating Generic Min()/Max() for Fundamental Types
The simplest way one can achieve this is to have separate functions for each type with a suffix to differentiate between them like the following:
...
12
votes
2
answers
1k
views
Header-only log-structured database
I'm seeking a code review for the ~2000 lines of code.
Makefile and tests are available at https://github.com/torrentg/logdb.
I would appreciate feedback on the following aspects:
Overall code ...
11
votes
2
answers
2k
views
Brainfuck to C transpiler
I have been working on making a transpiler from Brainfuck to C in C(11), here is the code:
...
6
votes
2
answers
186
views
Generic map-like function
This function mimics Python's map() function (No, it doesn't support generic return types for the function or multiple iterables) by applying the provided function <...
5
votes
3
answers
550
views
3
votes
5
answers
197
views
Calculate a math sequence that converges
Thanks for taking the time to read this. I could use a few pointers. I have written much better code but wrote this as a quick test. There is obviously a major issue/s somewhere except for the ...
-1
votes
1
answer
155
views
Brainfuck interpreter in C, looking for improvements on the looping functionality [closed]
I've just started to get into PL design and made a simple Brainfuck interpreter. Although it is functional, I don't feel too confident on the execution, particularly the implementation for loops, I ...
2
votes
4
answers
2k
views
Simplified print and input macros in C
For a program I'm writing, it requires a lot of printing and receiving user input. I've found it cumbersome to keep specifying the type strings in printf, and ...
3
votes
0
answers
86
views
Async generation of large buffers of random numbers on the GPU
I would like to obtain some feedback on a simple code I wrote to
implement an easy and hopefully fast way to generate a large number of floats
with CURAND and use them one at a time.
This is achieved ...
3
votes
1
answer
105
views
Basic Subnet Mask Calculator + A Little Extra
For my Networking class, we learned about subnetting and subnet masks.
I decided to write a little "calculator" (a generous term) that when given n-many network ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
c × 35
generics × 5
lock-free × 4
atomic × 3
brainfuck × 2
array × 2
macros × 2
unit-testing × 2
multithreading × 2
performance × 2
vectors × 1
utf-8 × 1
openssl × 1
opengl × 1
unicode × 1
template × 1
strings × 1
random × 1
pthreads × 1
pointers × 1
locking × 1
linked-list × 1
ipc × 1
interpreter × 1
more related tags
Hot Network Questions
- Is a Rakshasa Immune to True Strike?
- Why do I get a INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY exception when my Apex code is without sharing?
- Which workflows more effective: worldbuilding before plotting or the other way around?
- tac-command is it a bug or a misinterpretation of the manual?
- Why were two 2x6 boards installed on top of a window rough sill?
- Is there a way to move the cursor specifically to the beginning of the visually selected region (not just toggle like `o`)?
- Why is `&self` allowed in the parameters of `&mut self` methods, but not `&mut self`?
- Error on numerical integation
- rotated `\check` symbol
- Expected Sum of Remaining Dice After Removing Complete Sets
- Distance Between Subspaces
- Do standing sound waves sound different?
- Finding the value of collector resistor
- SOSL/SOQL isn't returning User records
- How to handle missing weather data (predictors) in production time series forecast with Prophet?
- Is buying random stocks and then selling off the ones that go down a good way to reduce capital gains tax?
- STM32 F411RE not responding on custom board layout
- Why is this endgame winning for Black?
- How much power does the Fed chair have over interest rates?
- How can I automatically replace curly braces { and } in LaTeX macro arguments—e.g., in math formulas—for label generation?
- Is a chemistry-first technological paradigm as plausible as one focused on physics or biology?
- How to Select and Isolate Only the Fillet Parts of a Curve in Geometry Nodes?
- What does this "lightbulb-ish" symbol mean in figure 1 of the Diffie Hellmann paper?
- Define command valid only for a specific environment in expl3