Format strings in C

  Рет қаралды 10,827

CodeVault

CodeVault

Күн бұрын

Пікірлер: 13
@toaastr8409
@toaastr8409 4 жыл бұрын
Every time I watch a new video from your channel, I hit the like button. I wish I have a macro for that. Now, I'm using my thumb again. 👍
@shvideo1
@shvideo1 3 жыл бұрын
Very useful video. Thank you for covering it so thoroughly. Also, what a great function snprintf() is?! I am picking back up C again after many years and I love it's simplicity, power, speed, and cross-platform support. I think all real programmers should know how to use it and C++ very well. Thank you for covering this jewel of a language.
@ΧριστίναΜι-μ3ψ
@ΧριστίναΜι-μ3ψ 3 жыл бұрын
That was really interesting and useful, thank you!
@mahadifamgate2686
@mahadifamgate2686 3 жыл бұрын
Very Good tutorial, also i request , if u make a website or blog so that i can read same information once again like short Text-Note.
@CodeVault
@CodeVault 3 жыл бұрын
Our website is up on: code-vault.net although it only has source codes and links to the current videos. We plan on expanding that soon!
@jameslay6505
@jameslay6505 2 жыл бұрын
The title would have you think the topic is format strings, (maybe what they are, how to use them, advanced topics) but it's in fact talking about applying the DRY principle to format strings. It's 11 minutes long. Lemme paraphrase the entire video: define format strings as a preprocessor directive and you won't have to rewrite your format strings everywhere they're used. tbh this is common sense.
@ankushdua8661
@ankushdua8661 4 жыл бұрын
does this technique work in C++?
@CodeVault
@CodeVault 4 жыл бұрын
If you're using printf, it sure will. If you're using cout... There is a format function in the boost library, which you'd have to install, but it is different. You can also override the
@sony1979iq
@sony1979iq 3 жыл бұрын
thx very nice videos like them
@charan2446
@charan2446 3 жыл бұрын
Dose this snprintf(buffer, 100, .......) work in c++ ?
@CodeVault
@CodeVault 3 жыл бұрын
Yes, anything that works in C works in C++ as well
@techxplorerxxx
@techxplorerxxx 3 жыл бұрын
I am getting warning od -wformat-truncation when using snprintf.How to avoid that??
@CodeVault
@CodeVault 3 жыл бұрын
Can you send me the whole error? I'm not sure what that means
What is %n in printf and scanf?
7:41
CodeVault
Рет қаралды 4,6 М.
Scanf Basics: the good, the bad, and why so many pointers?
15:07
Jacob Sorber
Рет қаралды 25 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 193 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 99 М.
I made Tetris in C, this is what I learned
15:15
Austin Larsen
Рет қаралды 24 М.
How to parse and validate a number in C
10:16
CodeVault
Рет қаралды 7 М.
A simple Format String exploit example - bin 0x11
10:01
LiveOverflow
Рет қаралды 173 М.
Be Careful When Using scanf() in C
12:22
NeuralNine
Рет қаралды 131 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 339 М.
Difference between macros and constants in C
12:42
CodeVault
Рет қаралды 12 М.
How Strings Work in C++ (and how to use them)
19:26
The Cherno
Рет қаралды 473 М.
Strpbrk and strspn in C
7:55
CodeVault
Рет қаралды 4,8 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН