diff options
| author | Martin Arver <martin.arver@gmail.com> | 2006-12-11 21:01:14 +0000 |
|---|---|---|
| committer | Martin Arver <martin.arver@gmail.com> | 2006-12-11 21:01:14 +0000 |
| commit | 7d820556e95ce8837eaa5baf2f6b5215a4b129ce (patch) | |
| tree | 686899f7652fcd3c43c321ca53d99bbdfca42847 /apps/codecs/dumb/make/dumbask.c | |
| parent | 440513ab6a51c5cc311ce8671180970279e4eaf9 (diff) | |
| download | rockbox-7d820556e95ce8837eaa5baf2f6b5215a4b129ce.zip rockbox-7d820556e95ce8837eaa5baf2f6b5215a4b129ce.tar.gz rockbox-7d820556e95ce8837eaa5baf2f6b5215a4b129ce.tar.bz2 rockbox-7d820556e95ce8837eaa5baf2f6b5215a4b129ce.tar.xz | |
Remove the files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11719 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/dumb/make/dumbask.c')
| -rw-r--r-- | apps/codecs/dumb/make/dumbask.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/apps/codecs/dumb/make/dumbask.c b/apps/codecs/dumb/make/dumbask.c deleted file mode 100644 index da89fab..0000000 --- a/apps/codecs/dumb/make/dumbask.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <stdio.h> -#include <ctype.h> - - -int main(int argc, const char *const argv[]) -{ - const char *message = argv[1]; - const char *options; - - if (!message) { - fprintf(stderr, - "dumbask: asks the user a question.\n" - "Specify a message as the first argument (quoted!).\n" - "You may optionally specify the choices as the second argument.\n" - "Default choices are YN. Exit code is 0 for first, 1 for second, etc.\n"); - return 0; - } - - options = argv[2] ? : "YN"; /* I _had_ to use a GNU Extension _somewhere_! */ - - printf("%s", argv[1]); - - for (;;) { - char c = toupper(getchar()); - int i; - for (i = 0; options[i]; i++) - if (c == toupper(options[i])) - return i; - } -} |