I can't seem to get sscanf to work for some odd reason on my Macbook
Pro. The following code:
sscanf(string, "%f", &double_var);
Doesn't do as expected. According to gdb, double_var goes from 0.0
(where I initialized it) to 5.14...e-315 (a number so small, it is
essentially zero.) Even if I use a string literal:
sscanf("123.456789", "%f", &double_var);
I get similar results---a tiny number that is basically equivalent to
zero. Any thoughts? Anyone else run into this?