Hey guys,
I’ve got a device driver that I wrote that needs to parse a file for some configuration settings. I am using ZwCreateFile() and ZwReadFile() to open and read the file. It is a relatively short file so I read it in as one string and then I want to break that string up and extract the configuration values (half of which are ints and the other half floats) and store them into two different arrays. I am currently using strtok() to break up the string and then I was planning on using atoi()/atof() OR stoi()/stof() to convert the string representations of the configuration values into the int and float values respectively. I get a linker error, however, when I try to use the conversion functions. It lets me use strtok() just fine though. I #include <stdlib.h> and #include <string.h> in my main header file and declare the functions in my source file with the ‘extern’ keyword but it still gives me a linker error saying that I have unresolved externals (referring to the stoi()/stof() but not strtok()). I’ve done some hunting but can’t figure this out. Any ideas? Or just a point in the right direction? Thanks
Regards</string.h></stdlib.h>