libstdf

Library for manipulating STDF files.

Version:
0.4
Author:
Mike Frysinger <vapier@gmail.com>
Date:
July 2004

Introduction

libstdf is a library for manipulating STDF files.

Install

Since libstdf currently uses the GNU autotools, the process is simply:
$ ./configure
$ make
$ sudo make install

Example

Here is a quick and dirty sample program that opens an stdf file and reads all the records:
#include <libstdf.h>

int main(int argc, char *argv[])
{
    stdf_file *stdf;
    rec_unknown *rec;

    if (argc != 2)
        return -1;

    stdf = stdf_open(argv[1]);
    if (!stdf)
        return -2;

    while ((rec=stdf_read_record(stdf)) != NULL) {
        // do stuff
        stdf_free_record(rec);
    }

    stdf_close(stdf);

    return 0;
}

Then to compile:

$ gcc -o example example.c -lstdf

Generated on Thu Jun 8 14:05:35 2006 for libstdf by  doxygen 1.4.6