summaryrefslogtreecommitdiff
path: root/src/xi/xi2path.c
blob: bd9c702a88d95e1eb550ede9c448efe2be50072a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdlib.h>
#include <err.h>

#include "xi2path.h"

int
main(int argc, char *argv[])
{
   if (argc < 2)
      errx(EXIT_FAILURE"usage: %s id\n", argv[0]);

   char path[12];
   xi2path(path, strtol(argv[1], NULL10));
   printf("%s\n", path);
   return EXIT_SUCCESS;
}