#include "common.h"
static void usage (void)
{
fprintf(stderr, "trexist <trackid>\n");
}
int main (int argc, char **argv)
{
u_int32_t id;
char *endptr;
if ( argc != 2 ) {
usage();
return 1;
}
id = strtoul(argv[1], &endptr, 10);
if ( *endptr != 0 ) {
fprintf(stderr, "illegal value %s\n", argv[1]);
return 1;
} else if ( ! id ) {
fprintf(stderr, "bad song id %u\n", id);
return 1;
}
if (device == NULL) {
printf("No devices. Connect/replug device and try again.\n");
exit (0);
}
printf("OK.\n");
exit (0);
}