There should be a #printf format `%ꙮ` that just shits an unfeasible number of zeroes all over the place.
`printf("%ꙮ\n", 32)`
000000000032.0000000000
There should be a #printf format `%ꙮ` that just shits an unfeasible number of zeroes all over the place.
`printf("%ꙮ\n", 32)`
000000000032.0000000000
[Перевод] Когда кажется, что нашёл баг в компиляторе
Расскажу вам историю о том, как я далеко не в первый раз столкнулась с багом компилятора. Дело в том, что я уже довольно хорошо научилась распознавать случаи, когда проблема заключается совсем не в моём коде.
https://habr.com/ru/companies/timeweb/articles/883862/
#timeweb_статьи_перевод #c++ #компиляторы #баги #прграммирование #printf #сборка_ядра #код #байт #arm
#include <stdio.h>
Is this what the "printf" function is supposed to do?
🐧 Struggling with text formatting in Linux? You're not alone! My new article breaks down the essentials for beginners.
Read more at https://www.spsanderson.com/steveondata/posts/2025-01-24/ and let’s discuss!
#Programming #linux #tech #printf #nl #fold #groff #TextProcessing #Formatting #Blog #CLI #CommandLineTips
🐧 Struggling with text formatting in Linux? You're not alone! My new article breaks down the essentials for beginners.
Read more at https://www.spsanderson.com/steveondata/posts/2025-01-24/ and let’s discuss!
#Programming #linux #tech #printf #nl #fold #groff #TextProcessing #Formatting #Blog #CLI #CommandLineTips
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.
#stm32 #tutorial #printf #serial #uart #swo #usb #stm32world #arduino
https://www.youtube.com/watch?v=y_KKHWecsj0
[Перевод] Крестики-нолики на printf
Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.
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.
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.
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
The first step towards #debugging an app written in a programming language you've never used is learning how to use #printf there.
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.
I just learned the phrase "load-bearing printf" and I can't stop smiling. https://juffalow.com/blog/other/funny-stuff-from-programmers-realm #debugging #printf #logging #ProgrammerHumor
Linux Fu: Customizing Printf https://hackaday.com/2023/10/24/linux-fu-customizing-printf/ #SoftwareDevelopment #HackadayColumns #LinuxHacks #printf #linux #gcc
Abolish #debuggers, embrace #printf #debugging
::: 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
=> https://www.winehq.org/announce/7.22
#Wine #gaming #Linux #deleteWindows #deleteMicrosoft #Vulkan #OpenGL #OpenLDAP #WinPrint #printf
@jeffeb3 I knew I saved this somewhere... I'll see if it works.
https://gist.github.com/raster/ed1eb004aa17adf9f7d5e475a346e50f
#arduino #sprintf #printf #formatting #time
Bash Scripting - Printf Command Explained With Examples #Printf #BashScripting #Bash #ShellScripting #Commandline #CLI #Linux #Linuxbasics #Linuxcommands #Bashtutorial #Linuxhowto
https://ostechnix.com/bash-printf-command/
#veriloghdl #printf
http://zakii.la.coocan.jp/hdl/52_timescale.htm
> $timeformat(-6,3," us",10); // "000.000 us"