CWB
Functions | Variables
cwb-align-decode.c File Reference
#include "../cl/globals.h"
#include "../cl/cl.h"

Functions

void aligndecode_usage (void)
 Prints a message describing how to use the program to STDERR and then exits. More...
 
int main (int argc, char **argv)
 Main function for cwb-align-decode. More...
 

Variables

char * progname
 Name of the program (from the shell) More...
 

Function Documentation

void aligndecode_usage ( void  )

Prints a message describing how to use the program to STDERR and then exits.

References progname, and VERSION.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Main function for cwb-align-decode.

Prints .align file header, followed by start and end positions of alignment beads of the specified sentence-level alignment to STDOUT,

Parameters
argcNumber of command-line arguments.
argvCommand-line arguments.

References aligndecode_usage(), ATT_ALIGN, central_corpus_directory, cl_alg2cpos(), cl_error(), cl_id_tolower(), cl_id_toupper(), cl_max_alg(), cl_new_attribute, cl_new_corpus(), cl_strdup(), corpus, corpus_id, progname, and registry_directory.

Variable Documentation

char* progname

Name of the program (from the shell)

Referenced by aligndecode_usage(), and main().