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

Functions

void sdecode_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-s-decode. More...
 

Variables

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

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)

Referenced by main(), and sdecode_usage().