Page 1 of 1

where is strtok()

Posted: 16 Dec 2018 17:16
by bastibart
Hy guys

Keep up the great work!
We really appreciate your efforts despite of all these harsh bug reports you're receiving.

i have a simply question - I hope:
Which header do I have to include to use strtok.

I tried <string.h>, "string.h" and even c:\...\[complete path]...\string.h"
Strangely in my main file (.ino) I can use strtok just fine without including <string.h>.

Thanks so much
Sebastian

Re: where is strtok()

Posted: 16 Dec 2018 22:30
by PoltoS
If you say it works, why do you need to know the header file name? ;)

Re: where is strtok()

Posted: 17 Dec 2018 11:34
by bastibart
Good morning

Because I want to use strtok in a separate .cpp file within a class definition rather than in the main .ino file

Re: where is strtok()

Posted: 11 Feb 2019 05:57
by PoltoS
Doesn't it work there?

Re: where is strtok()

Posted: 11 Feb 2019 23:24
by bastibart
No it works only in the main cpp file