Split A String At An Index Into Two Strings | C Programming Example

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

I can't thank you enough. I was looking for such a solution, and this is exactly what I need.

RustysAdventures
Автор

Thanks a lot! Needed a very specific solution to a problem and this helped me out

bradvan
Автор

i think it should be if length > 2, index + 1 < length
as indexing starts from zero

legendaryxk
Автор

I saw what you did there...
"Cause I've got one hand in my pocket, and the other one's flicking a cigarrette"
lol

Eyyy thank you for the video! I wanna do my own version of this using dynamic memory, and make it so that I can split it into an N amount of parts (chosen by the user). Any ideas or suggestions on that?

FrancoNSosa