Reinventing the wheel: write your own printf from scratch! (Multi-character string padding)

  Рет қаралды 51

wintc

wintc

Күн бұрын

Today, I kickstart my journey to add tons of features and tutorials on how to make various data structures and add various bits of functionality to my custom string_format function. First up: multi-character padding strings!
(Disclaimer: I'm quite a n00b, so hopefully my test cases aren't missing any glaring bugs!!!)
Test it yourself: github.com/wintcape/string_fo...
The main function is located @ test/src/main.c.
0:00 Demonstration
11:24 Header file
11:41 string_format_token_t
14:08 Global state
16:09 Validating the token
24:22 Applying the padding
29:00 TODO

Пікірлер
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,6 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 9 МЛН
why do header files even exist?
10:53
Low Level Learning
Рет қаралды 382 М.
3 Levels of Vim Refactoring
7:48
typecraft
Рет қаралды 37 М.
Risc-V Bare Metal C Hello World!
21:37
Chuck's Tech Talk
Рет қаралды 2,6 М.
Angular Code Review Best Practices - Refactoring From Junior Level to Senior
27:10
I Asked GPT-4 To Refactor My Legacy Codebase
12:39
Nick Chapsas
Рет қаралды 348 М.
JSON Parser 100% From Scratch in Haskell (only 111 lines)
1:50:07
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
Crust of Rust: async/await
2:34:01
Jon Gjengset
Рет қаралды 187 М.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН