1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-21 00:25:37 +00:00
elinks/src/cookies/cookies-t.c
2022-10-03 19:38:22 +02:00

18 lines
336 B
C

/* Tool for testing the cookies path */
#include <stdio.h>
#include "path.h"
/* fake tty get function, needed for charsets.c */
int get_ctl_handle() {
return -1;
}
int main(int argc, char **argv)
{
int res = is_path_prefix(argv[1], argv[2]);
printf("is_path_prefix(\"%s\", \"%s\")=%d\n", argv[1], argv[2], res);
return !res;
}