id generator test printf
parent
3b68b068b1
commit
50236cd764
|
|
@ -34,8 +34,6 @@ int main(int argc, char *argv[])
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
//id_generator_next(&context, &id);
|
|
||||||
//printf("id: %"PRId64", %016lX\n", id, id);
|
|
||||||
for (i=0; i<100; i++)
|
for (i=0; i<100; i++)
|
||||||
{
|
{
|
||||||
result = id_generator_next(&context, &id);
|
result = id_generator_next(&context, &id);
|
||||||
|
|
@ -43,7 +41,7 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
printf("%"PRId64", %016lX\n", id, id);
|
printf("%"PRId64"\n", id);
|
||||||
}
|
}
|
||||||
|
|
||||||
id_generator_destroy(&context);
|
id_generator_destroy(&context);
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
load_local_host_ip_addrs();
|
load_local_host_ip_addrs();
|
||||||
print_local_host_ip_addrs();
|
print_local_host_ip_addrs();
|
||||||
|
printf("first_local_ip: %s\n", get_first_local_ip());
|
||||||
|
|
||||||
getifconfigs(if_configs, sizeof(if_configs) / sizeof(if_configs[0]), &count);
|
getifconfigs(if_configs, sizeof(if_configs) / sizeof(if_configs[0]), &count);
|
||||||
printf("ifconfig count: %d\n", count);
|
printf("ifconfig count: %d\n", count);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue