Re: [newbie] strcpy, strtok and strcat problem...



CBFalconer schrieb:
Une bévue wrote:
in order not to change an input string i strcpy it to be able to
use strtok and strcat with it, for another reason, i need a second
copy of this string, however, after strtok and strcat with the
first, the second does have exactly the same value, here is the
small piece of code for that part :

You have some problems here. First, strtok is not a standard
function,
<snip>

Either you are wrong or my standards are broken:
ISO9899:1999 "7.21.5.8 The strtok function"
C89 draft: "4.11.5.8 The strtok function"
(the ISO9899:1990 is at work but I can look it up tomorrow
if you wish).

The rest of your article, of course, is correct but essentially
only advertisement for your code without addressing the
immediate problem.


Cheers
Michael

--
E-Mail: Mine is an /at/ gmx /dot/ de address.
.



Relevant Pages