Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double readValues(char line[BUFSIZE])
- {
- char *token;
- double value;
- token = strtok(line,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ: ");
- while (token != NULL)
- {
- printf("%s", token);
- token = strtok(NULL, " ");
- printf("före scan\n");
- sscanf(token, "%lf", &value);
- printf("%s", line);
- }
- return 5; /*använder 5 tills det att jag har fått resten att fungera.*/
- }
Add Comment
Please, Sign In to add comment