#C89

2025-10-13

"Puce" #c89

A solid block of colour.
2025-09-27

What's the bare minimum #C89 needed to connect to the console in any OS and, in Windows (inc. XP), Linux & MacOS, enable raw mode? Asking for a friend.

Maybe there's a bare-bones framework out there for "give my app a terminal window and make the OS go away" that doesn't involve installing gigabytes of compiler suites and libraries :|

#programming

2025-09-25

I recently wrote a sizeable, though still weekend-scaled, project in old-school C, an interactive disassembler and markup tool, to facilitate a bit of m68k reversing for a synth project.
I'd forgotten how *nice* it is to write green-field C. I wouldn't want this codebase to get any larger, but realloc-doubling buffers and do-it-yourself methods just scream at you to keep it small and focused.
#c89 #retrocomputing

Regionales Retro-Rechenzentrum3rz@freiburg.social
2025-09-13

Β»Tocaia is a simple and portable Gopher Client built with C89 and POSIX in mind. It offers a TUI interface to explore Gopherspace, with support for menus, text files, searches, and back/forward navigation.Β«

github.com/manipuladordedados/

#c89 #gopher #retronetworking #dfue

2025-06-27

@cks @whitequark

It's interesting comparing Usenet of 1993 to Hacker News of today. Some questions are perennial, it seems:

"But what use is malloc(0)?" followed by a discussion of people rolling their own Pascal-like strings.

"Why unique?" followed by a discussion of making sets and maps.

"It's not a valid pointer." leading to the usual pantomime rejoinder.

I haven't seen anyone ask what the old implementations that returned NULL did to errno, though.

#CLanguage #StandardC #C89 #POSIX1 #malloc #SVID

2025-06-26

@cks @whitequark

Back in 1993, #AIX was the example that people gave of a C library where malloc(0) returned NULL.

groups.google.com/g/comp.unix.

Most of the C libraries that I touched back then either just handed off to the operating system's API for suballocation, which did not treat zero specially, or had their own suballocation functions, which did not treat zero specially.

#CLanguage #StandardC #C89 #POSIX1 #malloc #SVID

Dungeonsdungeons
2025-03-16
Dungeonsdungeons
2025-03-16

The Giant Bat used Bite, dealing 6 damage to you.
You got knocked unconscious, but managed to get back up.
---
🦁 Giant Bat
β€οΈβ€οΈβ€οΈπŸ’”πŸ–€πŸ–€πŸ–€πŸ–€πŸ–€πŸ–€ 9/23
πŸ›‘οΈ 13 ☁️
❕1/4
✨ 50

Dungeonsdungeons
2025-03-16

You were hit by the Giant Bat's Bite attack, you took 8 damage.
---
🦁 Giant Bat
β€οΈβ€οΈβ€οΈπŸ’”πŸ–€πŸ–€πŸ–€πŸ–€πŸ–€πŸ–€ 9/23
πŸ›‘οΈ 13 ☁️
❕1/4
✨ 50

Dungeonsdungeons
2025-03-15

You successfully hit the Giant Bat with your Greatsword for 14 damage.
---
🦁 Giant Bat
β€οΈβ€οΈβ€οΈπŸ’”πŸ–€πŸ–€πŸ–€πŸ–€πŸ–€πŸ–€ 9/23
πŸ›‘οΈ 13 ☁️
❕1/4
✨ 50

Dungeonsdungeons
2025-03-15

You confronted the Giant Bat!
---
🦁 Giant Bat
❀️❀️❀️❀️❀️❀️❀️❀️❀️❀️ 23/23
πŸ›‘οΈ 13 ☁️
❕1/4
✨ 50

Dungeonsdungeons
2025-03-15

You embarked on a journey of adventure.
---
In the distance you see a 🦁 Giant Bat
❀️ 4-40 ☁️ ❕1/4 ✨ 50

Dungeonsdungeons
2025-03-15

You purchased the Greatsword and left the shop.
---
You are safe in a small village, what would you like to do?

Dungeonsdungeons
2025-03-15

You walked to a local shop.
---
Stepping into a quaint shop, you're greeted by Snork, the shopkeeper, who eagerly offers to assist you in your quests.
πŸŽ’
βš”οΈ Halberd [1d10+2, +4] πŸ›‘οΈ None [13]

Dungeonsdungeons
2025-03-15

You slept long through the night, regaining 6 hitpoints and 1 hitdice.
---
The walls of a town provide a sense of security, what would you like to do?

Dungeonsdungeons
2025-03-15

You traveled to a nearby town.
---
You are safe in a town, what would you like to do?

Dungeonsdungeons
2025-03-15

You successfully ran away!
---
You encounter a 🦁 Giant Owl
❀️ 6-33 ☁️ ❕1/4 ✨ 50

Dungeonsdungeons
2025-03-15

You were hit by the Merfolk's Spear attack, you took 6 damage.
You successfully hit the Merfolk with your Halberd for 3 damage.
---
πŸ§β€β™‚οΈ Merfolk
β€οΈβ€οΈβ€οΈβ€οΈβ€οΈβ€οΈβ€οΈπŸ’”πŸ–€πŸ–€ 11/14
πŸ›‘οΈ 11 🌊
❕1/8
✨ 25

Dungeonsdungeons
2025-03-15

You confronted the Merfolk!
---
πŸ§β€β™‚οΈ Merfolk
❀️❀️❀️❀️❀️❀️❀️❀️❀️❀️ 14/14
πŸ›‘οΈ 11 🌊
❕1/8
✨ 25

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst