CDatomsf(3dm) CDatomsf(3dm)
CDatomsf - convert ASCII string to minutes, seconds, frames
#include <sys/types.h>
#include <dmedia/cdaudio.h>
int CDatomsf(const char* str, int* m, int* s, int* f)
str A pointer to the ASCII string to be converted.
m A pointer to the location to store the minutes value.
s A pointer to the location to store the seconds value.
f A pointer to the location to store the frame value.
CDatomsf(3dm) returns non-zero if the string represents a valid time
otherwise it returns zero.
CDatomsf(3dm) converts an ASCII string of the form
"00:00:00"
representing a CD time code, into three integers with an integer each for
minutes, seconds and frame number. Any of the following separators may
be used in the string: :-/#|,.;* CDatomsf(3dm) sets as many values as
there are fields in the string, starting with the minutes value, up to
the maximum of three. Values corresponding to unsupplied fields are set
to zero.
CDintro(3dm), CDaddcallback(3dm), CDatotime(3dm), CDframetomsf(3dm),
CDparseframe(3dm), cdframe(4)
Doug Cook, Mark Callow
PPPPaaaaggggeeee 1111 [ Back ]
|