Hi all, i'm confused about how can i change a few words on a string to another words. I mean, i'm entering a sentences "CBoard cprogramming", and then i want to change the word "CBoard" into something new like "learning" etc. How can i do that? If i want to change it to "learning", then the length of the element is changing, and i'm confused with that
====
SO i've read that i could use the strstr to find the string i want to replace, and then using strncpy to copy the string, but does it means that the string i want to replace must have the same length as i want to input? i mean changing "sample" to the same-sized string like "simple" or "riddle", right?