diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2022-12-28 00:27:22 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2022-12-28 00:27:22 -0500 |
| commit | 3398d028c61165c219bf9361f5b81d3a54e968c8 (patch) | |
| tree | fcf6bbb62c7d0d6bb86a58e0db4eb3d74356c9e1 /util2.h | |
| parent | f2d52d23f74c065f288d9d4b399404fe50f38fc3 (diff) | |
| download | dwm-3398d028c61165c219bf9361f5b81d3a54e968c8.tar.gz dwm-3398d028c61165c219bf9361f5b81d3a54e968c8.tar.xz | |
Use regular expressions for tagging windows by class and name
Diffstat (limited to 'util2.h')
| -rw-r--r-- | util2.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/util2.h b/util2.h deleted file mode 100644 index ab25acf..0000000 --- a/util2.h +++ /dev/null @@ -1,24 +0,0 @@ -#include <stdio.h> -#include <fcntl.h> -#include <err.h> -#include <unistd.h> -#include <stdlib.h> - -int -readEnv(FILE *fh) -{ - int ret; - char name[1024], value[8192]; - - while (1) { - if ((ret = fscanf(fh, "%1023[^=]=%8191[^\n]\n", &name, &value)) == EOF) - break; - else if (ret == 0) - break; - - fprintf(stderr, "Setting: '%s' = '%s'\n", name, value); - setenv(name, value, 1); - } - - return 0; -} |
