A.3. Data Structures

Recall that each column in a table corresponds to a structure member, and each row in a table corresponds to an array element. In order for RTA to treat your arrays of structures as tables, you have the tell RTA about the tables. You describe each column by filling in a COLDEF structure, and you describe each table by filling in a TBLDEF structure. Here is an excerpt from rta.h that completely defines the data structures and constants associated with tables and columns.

 /** The column definition (COLDEF) structure describes * one column of a table. A table description has an * array of COLDEFs to describe the columns in the * table. */ typedef struct { /** The name of the table that has this column. */ char *table; /** The ...

Get Linux Appliance Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.