I have to read out some data from a csv-file which is in this format:
[ID], [Timestamp] ,[Temp in °C]
[ID], [Timestamp] ,[Temp in °C]
etc.
now i wanted to read it out with the fscanf() function, but when i used it it just reads till the first space and then stops. How can i solve this problem?
My first post was wrong, correct it should be like this:
void myfunction(char);
int main
{
...
}
void myfunction(char string[])
{
...
}
Functions can't be defined like this: void myfunction(char string[]) they must be like this: void myfunction(char);
I want to make a function which can take a textstring as parameter, like this
char string[5]
myfunction(string);
my question, how must the definition of the function look like?
Does anyone know how to make a for-loop that goes 1 Second no more, no less?
an idea:
for (x=0;x<10000;x++)
{
}
This should make the program wait a little while and then continue but i don't know what for a number i need for one Second.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.