diff --git a/doc/examples/id3dump.c b/doc/examples/id3dump.c index 3e3402bd..651df15e 100644 --- a/doc/examples/id3dump.c +++ b/doc/examples/id3dump.c @@ -101,8 +101,15 @@ int main(int argc, char **argv) { int i; mpg123_handle* m; + if(argc < 2) + { + fprintf(stderr, "\nI will print some ID3 tag fields of MPEG audio files.\n"); + fprintf(stderr, "\nUsage: %s \n\n", argv[0]); + return -1; + } mpg123_init(); m = mpg123_new(NULL, NULL); + for(i=1; i < argc; ++i) { mpg123_id3v1 *v1; diff --git a/doc/examples/mpglib.c b/doc/examples/mpglib.c index 881b99da..88589ddd 100644 --- a/doc/examples/mpglib.c +++ b/doc/examples/mpglib.c @@ -35,6 +35,7 @@ int main(int argc, char **argv) /* mpg123_param(m, MPG123_START_FRAME, 2300, 0); */ mpg123_open_feed(m); if(m == NULL) return -1; + fprintf(stderr, "Feed me some MPEG audio to stdin, I will decode to stdout.\n"); while(1) { len = read(0,buf,INBUFF); if(len <= 0) diff --git a/doc/examples/scan.c b/doc/examples/scan.c index 5b5ce36d..8cfa6c56 100644 --- a/doc/examples/scan.c +++ b/doc/examples/scan.c @@ -19,8 +19,8 @@ int main(int argc, char **argv) int i; if(argc < 2) { - fprintf(stderr, "I will give you the estimated and exact sample lengths of MPEG audio files.\n"); - fprintf(stderr, "\nUsage: %s \n", argv[0]); + fprintf(stderr, "\nI will give you the estimated and exact sample lengths of MPEG audio files.\n"); + fprintf(stderr, "\nUsage: %s \n\n", argv[0]); return -1; } mpg123_init();