How To Create A Substring Function | C Programming Example

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

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.

davidciaffa
Автор

I have done exactly same way for date(day, month, year), no error, but displaying values in form stickers . Help me to rectify.

TANMAYEEGOSAVI
Автор

tahnk u, can u plz make a vd about split and strjoin?

kuroko