How To Create A Substring Function | C Programming Example

  Рет қаралды 6,317

Portfolio Courses

Portfolio Courses

Күн бұрын

Пікірлер
@davidciaffa4711
@davidciaffa4711 8 ай бұрын
I think the last line should be "substr[i] = '\0';" to handle the "error2" case correctly. As written, the null terminator could be written to a location past the end of the "substr" array, possibly overwriting something important or causing a GPF.
@PortfolioCourses
@PortfolioCourses 8 ай бұрын
I’m going to check this out and fix it if so, thanks. :-)
@kuroko3073
@kuroko3073 3 жыл бұрын
tahnk u, can u plz make a vd about split and strjoin?
@PortfolioCourses
@PortfolioCourses 3 жыл бұрын
We have this video on string concatenation that you might enjoy: kzbin.info/www/bejne/lWiqgYODhtuCbpY For split and strjoin, we can very likely make videos on those functions... that actually would be pretty fun I think. :-D Are you thinking about functions from any other language in particular, like say Python or JavaScript? Or do you just mean general string split and join functions?
@kuroko3073
@kuroko3073 3 жыл бұрын
@@PortfolioCoursesin general string ....that would be nice
@PortfolioCourses
@PortfolioCourses 3 жыл бұрын
@@kuroko3073 OK sounds good, I'll likely make it most similar to how Python and JavaScript's split and join functions work since that is likely what many people will expect for those functions. :-)
@TANMAYEEGOSAVI
@TANMAYEEGOSAVI Жыл бұрын
I have done exactly same way for date(day, month, year) , no error , but displaying values in form stickers . Help me to rectify.
@PortfolioCourses
@PortfolioCourses Жыл бұрын
The original code in this video is found here Tanmayee: github.com/portfoliocourses/c-example-code/blob/main/substring.c. Have you tried using that version of the code? Maybe that will help? :-)
@TANMAYEEGOSAVI
@TANMAYEEGOSAVI Жыл бұрын
@@PortfolioCourses It was helpful, problem solved ,Thank you sir
@PortfolioCourses
@PortfolioCourses Жыл бұрын
@@TANMAYEEGOSAVI Awesome, I'm glad it was helpful! 🙂
@TANMAYEEGOSAVI
@TANMAYEEGOSAVI Жыл бұрын
@@PortfolioCoursessir, what if i want to add switch case method and display parameters for another case ? How to do that ?
@sltechniquesgaming3041
@sltechniquesgaming3041 3 жыл бұрын
great
@ryanalnaser914
@ryanalnaser914 2 жыл бұрын
anything I know or anything ok
@ryanalnaser914
@ryanalnaser914 2 жыл бұрын
Or I do
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 338 М.
Split Strings Function | C Programming Example
17:34
Portfolio Courses
Рет қаралды 27 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
C_66 Program to Find Length of a String | C Programming Language
17:09
Jenny's Lectures CS IT
Рет қаралды 268 М.
how Google writes gorgeous C++
7:40
Low Level
Рет қаралды 981 М.
Create Your Own strcpy() String Copy Function | C Programming Example
10:33
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 574 М.
you will never ask about pointers again after watching this video
8:03
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 846 М.
How to find a word inside a sentence in C
7:51
CodeVault
Рет қаралды 29 М.
Finding a character inside a string in C
8:26
CodeVault
Рет қаралды 12 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН