Thanks to the #c23 #embed macro, I may have written the world's shortest #quine.
```c
#include<stdio.h>
int main(){puts((char[]){
#embed"q.c"
,0});}
```
(I doubt that I'm the first to do this)
We just need to politely ignore the extra `\n` injected by `puts`. Otherwise, replace `puts` with `printf`.

Долгожданный оператор _Countof

Одно из недооценённых событий уходящего года деревянной змеи - в проекте стандарта языка С появился оператор числа элементов. Как заметил один мудрый товарищ, Алексей Годин, даже полвека ещё не прошло, а наконец, дождались.

https://habr.com/ru/articles/1000228/

#C2Y #C23 #массив #array #c++26

Долгожданный оператор _Countof

"Пять грустных солдат, пять веселых солдат и ефрейтор..." Окуджава Б.Ш., 1961 Содержание Оператор _Countof Этимология названия Реализация Терминология Жизнь до _Countof Идиома количества элементов...

Хабр

[Перевод] Маленький bool, сулящий большие беды

Признаюсь, я питаю слабость к классическому DOOM. Игре уже 31 год, но благодаря открытому исходному коду она живёт на всём — от смартфонов до осциллографов. В силу разных обстоятельств я стал сопровождать несколько пакетов, связанных с DOOM, в Fedora Linux. Перед каждым релизом Fedora проводит массовую пересборку всех пакетов — и в этот раз chocolate-doom её не пережил. Виновник этому — маленький bool.

https://habr.com/ru/companies/cloud4y/articles/996168/

#c #c23 #gcc #doom #debugging #fedora #open_source #gamedev #linux #programming

Маленький bool, сулящий большие беды

Должен признаться, я питаю слабость к классическому DOOM . Несмотря на то что игре уже стукнул 31 год, в неё всё так же весело играть (хотя я в этом не очень силён) или смотреть, как играют другие...

Хабр

Hello Fediverse! 🕷️

We are Tarantula Tech, a small group building software and (one day) hardware. We're looking for more people to build alongside us.

Current focus:
🛡️ Camelot (C23 lib)
⚓ URCHIN (AGPLv3 moderation bot)
🎮 A Tower Defense concept in Godot/Raylib and or more...

We’re just starting our journey and would love to have you along.

🔗 https://github.com/tarantula-org

#introduction #rustlang #c23 #gamedev #opensource #handmade #coding

Tarantula

Tarantula has 4 repositories available. Follow their code on GitHub.

GitHub
Now time to share the images from the s50. Starting out with #C23 / #NGC0891 #TheSilverSliverGalaxy. #seestar #S50 #space #astronomy #amateur

GNU C Library 2.43 đã chính thức ra mắt với việc bổ sung thêm các tính năng C23, cùng hai hàm mới: `mseal` và `openat2`. Bản cập nhật này cải thiện hiệu suất, bảo mật và khả năng tương thích hệ thống cho các ứng dụng C. Đây là bước tiến quan trọng cho các nhà phát triển hệ thống và phần mềm nguồn mở. #glibc #Cprogramming #C23 #openat2 #mseal #lậptrìnhC #GNU #phátriểnthệthống

https://www.reddit.com/r/programming/comments/1ql9c27/gnu_c_library_243_released_with_more_c23_features/

As a side project, I am working on a deep redesign of the C standard library and am contemplating blogging about it to give myself some motivation, as well as hopefully getting helpful feedback from interested enthusiasts or experienced programmers. Feel free to share this thread and ask questions, I'll be happy to answer them in my next blog post if this gets enough traction (I will post the link here on mastodon).

#programming #c #libc #c23 #c2y #clang #gcc #unix #windows #macos #plan9 #blog

So the correct answer is 5 rounding directions, though the last one was added in #C23:

FP_INT_UPWARD / ceil()
FP_INT_DOWNWARD / floor()
FP_INT_TOWARDZERO / trunc()
FP_INT_TONEARESTFROMZERO / round()
FP_INT_TONEAREST / roundeven() (C23)

Can you answer without checking: how many rounding directions does the #C standard define, as of #C23?
3
15%
4
40%
5
20%
6
25%
Poll ended at .