i need that if i have "abcd hhh"
will become "abcd hhh" onl one space between
what two string i need to copy
what is the indexes of each string.
i need that if i have "abcd hhh"
will become "abcd hhh" onl one space between
what two string i need to copy
what is the indexes of each string.
You'll want strncpy instead of strcpy, I believe. No?
Do as I say, not as I do . . .
Experimentation is the essence of programming. Just remember to make a backup first.
"I'm a firm believer that <SomeGod> gave us two ears and one mouth for a reason - we are supposed to listen, twice as much as we talk." - LEAF
Questions posted by these guidelines are more likely to be answered.
Debian GNU/Linux user, with the awesome window manager, the git version control system, and the cmake buildsystem generator.
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
so what indexes to use in the strcopy function
what two sub strings do i take?
if i would do it withouth str copy then i would start copying every next cell to the current one
from the place where i got a copy
but strcopy needs two equal length string
??