examples/info.c
/*
 * Print a FIDO device's attributes on stdout.
 */
Print a FIDO device's attributes on stdout.
Print a FIDO device ' s attributes on stdout .
static void
print_attr(const fido_dev_t *dev)
{
	char flags_txt[128];
	printf("proto: 0x%02x\n", fido_dev_protocol(dev));
	printf("major: 0x%02x\n", fido_dev_major(dev));
	printf("minor: 0x%02x\n", fido_dev_minor(dev));
	printf("build: 0x%02x\n", fido_dev_build(dev));
	format_flags(flags_txt, sizeof(flags_txt), fido_dev_flags(dev));
	printf("caps: 0x%02x (%s)\n", fido_dev_flags(dev), flags_txt);
}
static void print_attr ( const fido_dev_t * dev ) { char flags_txt [ 128 ] ; printf ( " \n " , fido_dev_protocol ( dev ) ) ; printf ( " \n " , fido_dev_major ( dev ) ) ; printf ( " \n " , fido_dev_minor ( dev ) ) ; printf ( " \n " , fido_dev_build ( dev ) ) ; format_flags ( flags_txt , sizeof ( flags_txt ) , fido_dev_flags ( dev ) ) ; printf ( " \n " , fido_dev_flags ( dev ) , flags_txt ) ; }
Print a FIDO device's attributes on stdout.
Print a FIDO device ' s attributes on stdout .