#printf

N-gated Hacker Newsngate
2026-01-11

✨🎨 Breaking news: yet another tech genius spends holiday break inventing a for because, clearly, what the world needs now is more ways to debug shaders. 🙄 Meanwhile, in a shocking turn of events, we discover people might actually want useful tools. Who would've guessed?! 💡🔍
abolishcrlf.org//2025/12/31/Pr

N-gated Hacker Newsngate
2025-12-30

🚨 Breaking News: "Programmer discovers is bad! 🎉" In a shocking revelation, it turns out using a function that doesn't null-terminate strings can lead to problems. Who would have thought? Next, Daniel plans to tackle the of 'printf' – stay tuned! 🤔
daniel.haxx.se/blog/2025/12/29

2025-12-26

Как Работать с UART на Микроконтроллерах ( UART + FIFO = LOG )

В этом тексте я написал про то как работать с UART на микроконтроллерах. Вы узнаете как пользоваться UART до того, как он будет включен. Допустим вы решили делать в своей прошивке printf- отладку. Или даже забабахать UART-CLI (Shell). Или у ваc есть какое -то внешнее устройство конфигурируемое по UART. Например микросхема U-Blox со своим UBX протоколом. Или LTE модуль с AT-командами. Первое с чем Вы столкнетесь - это настроить UART-трансивер. Как же реализовать алгоритм работы с UART периферией?

habr.com/ru/articles/981028/

#uart #прерывания #dma #gpio #fifo #LOG #cli #shell #printf #Критическая_секция

Paul SomeoneElsepkw@snac.d34d.net
2025-12-15

# Get the name of the current desktop/group in cwm.
BEGIN {
num_desktops = -1
cur_desktop = -1
}

#_NET_NUMBER_OF_DESKTOPS(CARDINAL) = 10
/NET_NUMBER/ {
num_desktops = $3
}

#_NET_CURRENT_DESKTOP(CARDINAL) = 5
/NET_CURRENT_DESKTOP/ {
# I am using cwm which inserts a "nogroup" as first group.
# so need to add 1 to make this sync up with the awk array
# index of the group list.
cur_desktop = $3 + 1
}

#_NET_DESKTOP_NAMES(UTF8_STRING) = "nogroup", "one", "two", ...
/NET_DESKTOP_NAMES/ {
split($0, a1, "=")
ds = a1[2]
split(ds, desktops, ",")
}

END {
#printf "num_desktops[%d]\n", num_desktops
#printf "cur_desktop[%d]\n", cur_desktop
#for (i=1; i<=num_desktops; i++)
# print i, ":", desktops[i]
d = desktops[cur_desktop]
printf "%s", d
}

2025-12-06

Erstellen von Dateien auf der Linux Kommandozeile

Dateien in Linux per Kommandozeile erstellen Dateien in Linux über die Kommandozeile zu erstellen, ist eine grundlegende und häufig genutzte Fähigkeit, die in vielen Situationen hilfreich ist – vom Anlegen leerer Dateien bis hin zur Erstellung von Dateien mit spezifischem Inhalt. Im Folgenden werden die wichtigsten und einfachsten Methoden vorgestellt, um schnell Dateioperationen bequem im Terminal auszuführen. 1. Dateien mit touch erstellen Der Befehl touch dateiname erstellt eine […]

andreas-moor.de/erstellen-von-

Diego Córdoba 🇦🇷d1cor@mstdn.io
2025-08-18

¿Usar un debugger como gdb?

Naa, a mi dejame con los printf metidos por todos lados, y una directiva #define para activarlos o desactivarlos a todos juntos cuando la cosa se complica 😆

#programming #c #gdb #debugging #printf

life advice
Name: mike
Age: 92

"Dont stop printf debugging"
David Cantrell 🏏DrHyde@fosstodon.org
2025-06-06

There should be a #printf format `%ꙮ` that just shits an unfeasible number of zeroes all over the place.

`printf("%ꙮ\n", 32)`

000000000032.0000000000

#CursedCode #ManyEyedAbomination

2025-02-19

[Перевод] Когда кажется, что нашёл баг в компиляторе

Расскажу вам историю о том, как я далеко не в первый раз столкнулась с багом компилятора. Дело в том, что я уже довольно хорошо научилась распознавать случаи, когда проблема заключается совсем не в моём коде.

habr.com/ru/companies/timeweb/

#timeweb_статьи_перевод #c++ #компиляторы #баги #прграммирование #printf #сборка_ядра #код #байт #arm

2025-02-07

#include <stdio.h>
Is this what the "printf" function is supposed to do?

#pun #CProgramming #printer #printf #programming

HP Officejet 4500 multifunction inkjet printer printing a giant black capital letter F onto a sheet of paper

(because printf is pronounced "print F")
STM32Worldstm32world
2025-01-19

STM32 Tutorial #36 - Serial Print (Arduino users need to watch this!)
This video goes into detail about the many different ways a serial console can be implemented. The video also show how to make a virtual COM port using USB. Everything in this video has been explained in earlier videos in little side notes but here is the complete detailed view.

youtube.com/watch?v=y_KKHWecsj0

2025-01-14

[Перевод] Крестики-нолики на printf

Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.

habr.com/ru/articles/873554/

#printf #болото_тюринга #scanf

@AdamOnza

In addition to the f-string example someone else gave, printf-style formatting has always supported this by using "*" as the width specifier and passing a value in the parameters in its place:

>>> print("a %*s b" % (6, "foobar"))
a foobar b
>>> print("a %*s b" % (16, "foobar"))
a foobar b

#printf #format

Jesus Michał "Le Sigh" 🏔 (he)mgorny@treehouse.systems
2023-12-31

The first step towards #debugging an app written in a programming language you've never used is learning how to use #printf there.

Jezus Michał "Le Wzdych" (on)mgorny@pol.social
2023-12-31

Pierwszy krok ku #debugowaniu aplikacji w języku programowania, którego jeszcze się nie używało, to nauczyć się, jak używać w nim #printf.

Amsteramster
2023-11-28

I just learned the phrase "load-bearing printf" and I can't stop smiling. juffalow.com/blog/other/funny-

2023-10-24

Client Info

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