#printf

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")
Steven Sandersonspsanderson@rstats.me
2025-01-24

🐧 Struggling with text formatting in Linux? You're not alone! My new article breaks down the essentials for beginners.

Read more at spsanderson.com/steveondata/po and let’s discuss!

#Programming #linux #tech #printf #nl #fold #groff #TextProcessing #Formatting #Blog #CLI #CommandLineTips

**ALT Text:** A terminal window displaying a command line input that formats and prints system information, including hostname, memory, and disk usage. The command uses `printf` and `awk` to neatly align the output, showing the hostname as "server," memory as "31G," and disk usage as "37%." The background is a soft gradient, enhancing the focus on the terminal text.
Steven P. Sanderson II, MPHstevensanderson@mstdn.social
2025-01-24

🐧 Struggling with text formatting in Linux? You're not alone! My new article breaks down the essentials for beginners.

Read more at spsanderson.com/steveondata/po and let’s discuss!

#Programming #linux #tech #printf #nl #fold #groff #TextProcessing #Formatting #Blog #CLI #CommandLineTips

**ALT Text:** A terminal window displaying a command line input that formats and prints system information, including hostname, memory, and disk usage. The command uses `printf` and `awk` to neatly align the output, showing the hostname as "server," memory as "31G," and disk usage as "37%." The background is a soft gradient, enhancing the focus on the terminal text.
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

Steven Sandersonspsanderson@rstats.me
2024-10-18

Here is a second example from the book C Absolute Beginner Guide Third Edition.

I worked through it and this stuff I have to say is starting to make some sense.

#C #CProgramming #Programming #Coding #scanf #printf #stdio

This code is like having a chat with a computer about pizza! Here's how it works, explained super simply:

1. The computer asks how much a pizza costs and you tell it by typing in a price.
2. Then it asks what your favorite pizza topping is, like "pepperoni."
3. Next, it asks how many slices of pizza you can eat.
4. After that, it wants to know today's date (like month, day, and year).
5. Finally, it takes all your answers and tells you: "On this date, you can treat yourself to [X] slices of [your topping] pizza, and it will cost you [this much money]!"

It’s like a little pizza order conversation between you and the computer!
Steven P. Sanderson II, MPHstevensanderson@mstdn.social
2024-10-18

Here is a second example from the book C Absolute Beginner Guide Third Edition.

I worked through it and this stuff I have to say is starting to make some sense.

#C #CProgramming #Programming #Coding #scanf #printf #stdio

This code is like having a chat with a computer about pizza! Here's how it works, explained super simply:

1. The computer asks how much a pizza costs and you tell it by typing in a price.
2. Then it asks what your favorite pizza topping is, like "pepperoni."
3. Next, it asks how many slices of pizza you can eat.
4. After that, it wants to know today's date (like month, day, and year).
5. Finally, it takes all your answers and tells you: "On this date, you can treat yourself to [X] slices of [your topping] pizza, and it will cost you [this much money]!"

It’s like a little pizza order conversation between you and the computer!

@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

mgorny-nyan (he) :autism:🙀🚂🐧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.

mgorny-nyan (on) :autism:🙀🚂🐧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
2023-10-21

Abolish #debuggers, embrace #printf #debugging

2022-11-28

::: Ditching user disrespecting Windows for Linux has never been more viable :thinkhappy:

Did you know? You can play Windows-only games on Linux in Steam by just enabling PROTON there :linux:

Proton? It's Valve's enhancement based on work of Wine project - Wine 7.22 is out now to take things all the more further!

Wine 7.22 main updates:

- 32-on-64 thunks for both Vulkan & OpenGL

- OpenLDAP library bundled / built as PE

- Support for the RAW print processor in WinPrint

- More progress on the long types printf format conversion

=> winehq.org/announce/7.22

#Wine #gaming #Linux #deleteWindows #deleteMicrosoft #Vulkan #OpenGL #OpenLDAP #WinPrint #printf

Pete Prodoehl 🍕rasterweb
2022-11-24
2021-08-22

#veriloghdl #printf
zakii.la.coocan.jp/hdl/52_time

> $timeformat(-6,3," us",10); // "000.000 us"

Client Info

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