CWB
Functions | Variables

cwb-s-decode.c File Reference

#include "../cl/globals.h"
#include "../cl/cl.h"

Functions

Variables


Function Documentation

int main ( int  argc,
char **  argv 
)

Main function for cwb-s-decode.

Prints information about each region in a given s-attribute in a specified corpus to STDOUT, optionally with their annotation values.

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

References ATT_STRUC, central_corpus_directory, cl_error(), cl_max_struc(), cl_new_attribute, cl_new_corpus(), cl_struc2cpos(), cl_struc2str(), cl_struc_values(), corpus, corpus_id, progname, registry_directory, and sdecode_usage().

void sdecode_usage ( void  )

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

References progname, and VERSION.

Referenced by main().


Variable Documentation

char* progname

Name of the program (from the shell)