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 »

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: 7565
Joined: 26 Jan 2011 19:36

Re: where is strtok()

Post by PoltoS »

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 »

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: 7565
Joined: 26 Jan 2011 19:36

Re: where is strtok()

Post by PoltoS »

Doesn't it work there?
bastibart
Posts: 23
Joined: 12 Dec 2018 16:37

Re: where is strtok()

Post by bastibart »

No it works only in the main cpp file
Post Reply