summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/os/t_expand_path.c
blob: 5f63577a3c5e41f7effe68bea5927e8cb2751a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "k5-int.h"
#include "os-proto.h"

int
main(int argc, char **argv)
{
    char *path;

    if (k5_expand_path_tokens_extra(NULL, argv[1], &path, "animal", "frog",
				    "place", "pad", "s", "s", NULL) != 0)
	return 2;
    if (argc == 2)
	printf("%s\n", path);
    else if (strcmp(path, argv[2]) != 0)
	return 1;
    free(path);
    return 0;
}