diff options
author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-11 18:19:01 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-11 18:19:01 +0200 |
commit | b1669b5c48f71c9a7a919dbf09a1af527c62f69a (patch) | |
tree | f94f1018357afe5abef9cde46a80d16a9676010f /gridsel.c | |
parent | 586f66331d1105be03c42e6faeae1672b974a98a (diff) | |
download | dwm-b1669b5c48f71c9a7a919dbf09a1af527c62f69a.tar.gz |
removed unnecessary sel stuff
Diffstat (limited to 'gridsel.c')
-rw-r--r-- | gridsel.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/gridsel.c b/gridsel.c deleted file mode 100644 index c76105e..0000000 --- a/gridsel.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> - * See LICENSE file for license details. - */ - -#include <stdlib.h> -#include <stdio.h> -#include <string.h> - -#include <util.h> - -static char version[] = "gridsel - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; - -static void -usage() -{ - fprintf(stderr, "%s\n", "usage: gridsel [-v]\n"); - exit(1); -} - -int -main(int argc, char **argv) -{ - unsigned char *data; - unsigned long i, offset, len, remain; - - /* command line args */ - if(argc > 1) { - if(!strncmp(argv[1], "-v", 3)) { - fprintf(stdout, "%s", version); - exit(0); - } else - usage(); - } - len = offset = remain = 0; - do { - data = getselection(offset, &len, &remain); - for(i = 0; i < len; i++) - putchar(data[i]); - offset += len; - free(data); - } - while(remain); - if(offset) - putchar('\n'); - return 0; -} |