mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-12-24 02:55:32 +02:00
24 lines
393 B
C
24 lines
393 B
C
/*
|
|
* Main entry of the program.
|
|
*/
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
#include <sys/mman.h>
|
|
|
|
#include "include.h"
|
|
|
|
static np_data *npdata;
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
if (cmdline(argc, argv, npdata)) return 0;
|
|
npdata=cmdinit();
|
|
if (!npdata) return 0;
|
|
if (cmdexcute(npdata)) return 0;
|
|
if (cmdexit(npdata)) return 0;
|
|
|
|
return 0;
|
|
}
|