BeBOP Optimized Sparse Kernel Interface Library  1.0.1h
Functions
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,...)
size_t ParseByteString (const char *s)
oski_storage_t ParseDenseMatLayout (const char *s)
oski_matop_t ParseMatTransOp (const char *s)
void PrintMatTransOp (FILE *fp, const char *matname, oski_matop_t op)
void PrintDebugMatTransOp (int level, const char *matname, oski_matop_t op)
oski_ataop_t ParseMatATAOp (const char *s)
void PrintMatATAOp (FILE *fp, const char *matname, oski_ataop_t op)
void PrintDebugMatATAOp (int level, const char *matname, oski_ataop_t op)

Detailed Description

Parse command-line options.

Type-dependent routines for command-line option parsing.


Function Documentation

int StringMatches ( const char *  source,
  ... 
)
Parameters:
[in]sourceSource 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().