2011-04-22 15:09:32 +00:00
|
|
|
#include <psyc.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
2011-04-25 12:20:13 +00:00
|
|
|
const char* vars[] =
|
2011-04-22 15:09:32 +00:00
|
|
|
{
|
|
|
|
"_source",
|
|
|
|
"_source_relay",
|
|
|
|
"_source_foo",
|
|
|
|
"_sourcherry",
|
|
|
|
"_foo",
|
|
|
|
"bar",
|
|
|
|
"_",
|
|
|
|
};
|
|
|
|
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < sizeof(vars) / sizeof(*vars); i++)
|
|
|
|
{
|
2011-04-25 12:20:13 +00:00
|
|
|
printf(">> %s: %ld %ld\n", vars[i], sizeof(vars[i]), sizeof(*vars[i]));
|
2011-04-22 15:09:32 +00:00
|
|
|
printf("%s: %d\n", vars[i], PSYC_isRoutingVar(vars[i], strlen(vars[i])));
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|