qkslvrwolf
Programmer
For some reason, this
#include <stdlib.h>
int string2float(char *word)
{
float ret;
ret = 0;
ret = strtof(word, NULL);
return ret;
}
gives me an "unidentified reference to strtof" at the line of ret = strtof(word, NULL);
Which really confuses me, because elsewhere in this program I have almost the samet thing, but with an int ret; and strtol(word, NULL);, which works. Great.
Whats going on here?
#include <stdlib.h>
int string2float(char *word)
{
float ret;
ret = 0;
ret = strtof(word, NULL);
return ret;
}
gives me an "unidentified reference to strtof" at the line of ret = strtof(word, NULL);
Which really confuses me, because elsewhere in this program I have almost the samet thing, but with an int ret; and strtol(word, NULL);, which works. Great.
Whats going on here?