char *price_1, *price_2;
double price1, price2;
if(strncmp(t, stock_id, 5) == 0)
{
printf("Found the stock in %s!\n", argv[1]);
// printf ("Splitting string \"%s\" into tokens:\n", t);
out = strtok(t," ");
int i = 0;
while (i < 1)
{
printf ("%s\n", out);
out = strtok(NULL, " ");
price_1 = out;
i++;
}
//printf("Printing price_1: %s\n", price_1);
while (i < 2)
{
out = strtok(NULL, " ");
price_2 = out;
i++;
}
printf("Printing price_1: %s\n", price_1);
price1 = atof(price_1);
printf("Printing price1: %d\n", price1);
break;
}