MobilityDB 1.3
Loading...
Searching...
No Matches
Macros | Functions
ttext_assemble.c File Reference

A simple program that generates a given number of ttext instants, appends the instant into a sequence at each generation, and outputs the number of instants and the last value of the sequence at the end. More...

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <meos.h>

Macros

#define MAX_INSTANTS   1000000
 
#define MAX_LENGTH_INST   64
 
#define MAX_LENGTH_TEXT   20
 
#define NO_INSTANTS_BATCH   10000
 

Functions

int main (void)
 

Detailed Description

A simple program that generates a given number of ttext instants, appends the instant into a sequence at each generation, and outputs the number of instants and the last value of the sequence at the end.

The instants are generated so they are not redundant, that is, all input instants will appear in the final sequence.

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o ttext_assemble ttext_assemble.c -L/usr/local/lib -lmeos