Split Strings Function | C Programming Example

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

You managed to explain in 17min what my teacher couldn't in 7 hours. thank you so much. I needed this for my project and couldn't continue without it, had been stuck on it for a whole week. aboslute grade saver

basi
Автор

Dude I am doing a project for uni where one of the functions I need to write needs to do this. Been sitting on it for a whole day getting seg faults and this has finally worked. You are an absolute legend

kacpergnys
Автор

Thank you for the amazing explanation. Recreating existing function is a very good exercice but sometime difficult and you help me a lot.

natevaub
Автор

Sir you are a king for this 👑 Segfault almost ended my existence. Subbed!

VoidExistence
Автор

Thank you. This is exactly what i needed. Your explanations are among the best if not the best on the subject of c programming.

KeyboardSound
Автор

You are amazing, love your videos it is so well explained!! Every time I am looking for some functions I go straight to your videos :) Thank you for your time doing that!

EliskaM-qz
Автор

Is there any issue with the fact that you're not checking for the success of malloc in the case of the array, and the arrays within the array?

Like yes, you free it after in the main function, but what if somehow there's a failure during one of the substring allocations? Many colleagues have been telling me that I should the run a helper function that will free each allocated substring and the array containing them, and return 0.

Thoughts on this? Out of the scope of this video?

thedapperfoxtrot
Автор

Thank you for the clear explanation! 🙌🏽❤️
My question is, can we use the free function in our created split function instead of main?

nohaelhassan
Автор

Love it, but why do you use a int pointer instead of just the count as an int

yechezkelyirmaha
Автор

Thank you so much for this explanation!!!

tii
Автор

how to modify this code in order to split string with sub-string not by characters, for example "The splitter quick fox splitter jumps splitter over the splitter lazy dog". I want split the string with the sub-string "splitter". Thank you in advance.

alexantollin
Автор

hi, is there anything similiar to that but for stl vector ?, thanks . great videos thanks for everytthing .

ManOwaRR
Автор

I want to create a function that joins an array of strings on a separator characters, can i use this split function???

kingsleyokon
Автор

You could have passed a pointer to a struct of char * and size_t

animedeathfire