> sscanf( line, "%2d%2d%5.2f", &rah, &ram, &ras ); > If I replace the format string with "%2d%2d%5f" it works. Would not have expected that... Jason -- KStars: A KDE Planetarium http://edu.kde.org/kstars