Displaying 1 result from an estimated 1 matches for "minsec_atof".
2003 Feb 28
2
ogg123 -k 1:59 patch.ogg # minutes and seconds
...diff -Naur vorbis-tools-1.0.orig/ogg123/cmdline_options.c vorbis-tools-1.0/ogg123/cmdline_options.c
--- vorbis-tools-1.0.orig/ogg123/cmdline_options.c Thu Jul 11 04:44:39 2002
+++ vorbis-tools-1.0/ogg123/cmdline_options.c Thu Feb 27 13:37:46 2003
@@ -50,6 +50,24 @@
{0, 0, 0, 0}
};
+double minsec_atof(const char *nptr)
+{
+ const char *p = nptr;
+ double min = 0.0;
+ double sec = 0.0;
+
+ while (*p && *p != '.') {
+ if (*p >= '0' && *p <='9')
+ sec = sec * 10 + (*p-'0');
+ else
+ if (*p == ':') {
+ min = sec;
+ sec = 0.0;...