#include "common.h"
#include <string.h>
int main (int argc, char **argv)
{
int n, opt, debug;
char *ownerstring;
extern char *optarg;
char *lang;
debug= 0;
while ( (opt= getopt(argc, argv, "D:")) != -1 ) {
switch (opt) {
case 'D':
debug= atoi(optarg);
break;
default:
fprintf(stderr, "usage: getowner [ -D debuglvl ]\n");
return 1;
}
}
lang = getenv("LANG");
if (lang != NULL) {
if (strlen(lang) > 5) {
if (!strcmp(&lang[strlen(lang)-5], "UTF-8")) {
}
}
}
fprintf(stderr, "could not locate any jukeboxes\n");
return 1;
}
if ( n == 0 ) {
fprintf(stderr, "No NJB devices found\n");
return 1;
}
njb = njbs;
return 1;
}
if (ownerstring != NULL) {
printf("Owner string: %s\n", ownerstring);
free(ownerstring);
} else {
fprintf(stderr, "could not retrieve owner string\n");
}
return 0;
}