TwiceAsNice  2019-02-18
Macros | Functions | Variables
fxload.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdarg.h>
#include <sys/types.h>
#include <getopt.h>
#include "libusb.h"
#include "ezusb.h"
#include <syslog.h>
#include <strings.h>
Include dependency graph for fxload.c:

Macros

#define _stricmp   strcasecmp
 
#define FXLOAD_VERSION   (__DATE__ " (libusb)")
 
#define ARRAYSIZE(A)   (sizeof(A)/sizeof((A)[0]))
 
#define FIRMWARE   0
 
#define LOADER   1
 

Functions

void logerror (const char *format,...) __attribute__((format(__printf__
 
static int print_usage (int error_code)
 
int main (int argc, char *argv[])
 

Variables

static bool dosyslog = false
 

Macro Definition Documentation

◆ _stricmp

#define _stricmp   strcasecmp

◆ ARRAYSIZE

#define ARRAYSIZE (   A)    (sizeof(A)/sizeof((A)[0]))

◆ FIRMWARE

#define FIRMWARE   0

◆ FXLOAD_VERSION

#define FXLOAD_VERSION   (__DATE__ " (libusb)")

◆ LOADER

#define LOADER   1

Function Documentation

◆ logerror()

void logerror ( const char *  format,
  ... 
)

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ print_usage()

static int print_usage ( int  error_code)
static

Variable Documentation

◆ dosyslog

bool dosyslog = false
static