|
|
tmap.c - ics2txt - convert icalendar .ics file to plain text |
|
|
 |
git clone git://bitreich.org/ics2txt git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ics2txt (git://bitreich.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Tags |
|
|
|
--- |
|
|
|
tmap.c (270B) |
|
|
|
--- |
|
|
|
1 #include <string.h> |
|
|
|
2 #include <stdio.h> |
|
|
|
3 |
|
|
|
4 #include "map.h" |
|
|
|
5 |
|
|
|
6 int main(int argc, char **argv) { |
|
|
|
7 struct map map; |
|
|
|
8 |
|
|
|
9 memset(&map, 0, sizeof(map)); |
|
|
|
10 |
|
|
|
11 for (argv++; *argv != NULL; argv++) |
|
|
|
12 if (map_set(&map, *argv, "abra") < 0) |
|
|
|
13 return 1; |
|
|
|
14 |
|
|
|
15 fprintf(stdout, "."); |
|
|
|
16 |
|
|
|
17 return 0; |
|
|
|
18 } |
|