where is strtok()

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
bastibart
Posts: 23
Joined: 12 Dec 2018 16:37

where is strtok()

Post by bastibart » 16 Dec 2018 17:16

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

User avatar
PoltoS
Posts: 5018
Joined: 26 Jan 2011 19:36

Re: where is strtok()

Post by PoltoS » 16 Dec 2018 22:30

If you say it works, why do you need to know the header file name? ;)

bastibart
Posts: 23
Joined: 12 Dec 2018 16:37

Re: where is strtok()

Post by bastibart » 17 Dec 2018 11:34

Good morning

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

User avatar
PoltoS
Posts: 5018
Joined: 26 Jan 2011 19:36

Re: where is strtok()

Post by PoltoS » 11 Feb 2019 05:57

Doesn't it work there?

bastibart
Posts: 23
Joined: 12 Dec 2018 16:37

Re: where is strtok()

Post by bastibart » 11 Feb 2019 23:24

No it works only in the main cpp file

Post Reply