search for: countof

Displaying 3 results from an estimated 3 matches for "countof".

Did you mean: countif
2012 Oct 03
1
[PATCH] pxedump.c32: Simple PXE cached packet dumping
...ux' PXELINUX. + * Dump PXE cached packets. Mostly useful with a serial connection + */ + +#include <stddef.h> +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <ctype.h> +#include <consoles.h> +#include <syslinux/pxe.h> + +#define countof(arr) (sizeof (arr) / sizeof *(arr)) +#define cached_pkt_count 3 +#define ipaddr_str_template "AAA.BBB.CCC.DDD" + +struct ipaddr_str; +struct cached_pkt; +struct cached_pkts; + +static int get_cached_pkts(struct cached_pkts * cached_pkts); +static int dump_cached_pkts(struct cached_pkts *...
2012 Nov 23
1
[PATCH] nictype.c32: PXELINUX module to display UNDI NIC bus type...
...at displays UNDI NIC bus type and optionally loads + * a config-file based on the PCI VENdor and DEVice IDs + */ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <console.h> +#include <syslinux/pxe.h> +#include <syslinux/boot.h> + +#undef Countof +#define Countof(array) (sizeof (array) / sizeof *(array)) + +static const char *nic_type_names[] = { + "Unknown", + "Unknown", + "PCI", + "PnP", + "CardBus", +}; + +static int usage(const char *prog); + +static const char prog_name[]...
2008 Aug 22
0
Wine release 1.1.3
...cStringBindingParseA/W to escape and unescape delimiters in the string binding. oleaut32: Avoid unnecessary allocations in TLB_MultiByteToBSTR and SLTG_ReadString. oleaut32: Fix invalid free of import library entry name with SLTG typelibs. cryptnet: Fix mismatch between sizeof and countof quantities in CRYPT_GetUrlFromCertificateCRLDistPoint. appwiz.cpl: Fix leak of thread and process handles in UninstallProgram. d3d9: Fix variable type in IDirect3DDevice9Impl_GetSoftwareVertexProcessing. d3d9: Remove unneeded local variable in IDirect3DDevice9Impl_SetFVF. in...