parse_opts.c File Reference

Parse command-line options. More...

#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include "abort_prog.h"
#include "parse_opts.h"

Functions

int StringMatches (const char *source,...)
 Returns 0 <==> the given source string does not match any of a list of possible strings.
size_t ParseByteString (const char *s)
 Parses a string specifying a size in bytes.
oski_storage_t ParseDenseMatLayout (const char *s)
 Parse a vector layout string.
oski_matop_t ParseMatTransOp (const char *s)
 Parse a matrix-transpose option.
void PrintMatTransOp (FILE *fp, const char *matname, oski_matop_t op)
 Print matrix transpose option.
void PrintDebugMatTransOp (int level, const char *matname, oski_matop_t op)
 Print matrix transpose option.
oski_ataop_t ParseMatATAOp (const char *s)
 Parse a $A^TA\cdot x$ matrix-transpose option.
void PrintMatATAOp (FILE *fp, const char *matname, oski_ataop_t op)
 Print $A^TA\cdot x$ matrix-transpose option.
void PrintDebugMatATAOp (int level, const char *matname, oski_ataop_t op)
 Print $A^TA\cdot x$ matrix-transpose option.


Detailed Description

Parse command-line options.

Type-dependent routines for command-line option parsing.


Function Documentation

int StringMatches ( const char *  source,
  ... 
)

Returns 0 <==> the given source string does not match any of a list of possible strings.

Parameters:
[in] source Source string (NULL-terminated).
[in] ... List of strings to compare to. The end of the list is marked by a NULL.
Returns:
0 if source is NULL or does not exactly equal any of the list of comparison strings, or the index of the matching item (starting at 1).

Referenced by keropts_Process(), and matopts_Process().


Generated on Fri Apr 8 22:35:19 2011 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.5.9