Loading [MathJax]/extensions/TeX/AMSsymbols.js
LAL 7.7.0.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
StringVectorTest.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2011 Reinhard Prix
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with with program; see the file COPYING. If not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 * MA 02110-1301 USA
18 */
19
20/*---------- INCLUDES ----------*/
21#include <string.h>
22#include <stdlib.h>
23#include <stdarg.h>
24
25#include <lal/LALStdlib.h>
26#include <lal/XLALError.h>
27#include <lal/StringVector.h>
28#include <lal/LALMalloc.h>
29
30/*---------- DEFINES ----------*/
31/*---------- internal types ----------*/
32/*---------- empty initializers ---------- */
33/*---------- Global variables ----------*/
34/*---------- internal prototypes ----------*/
35int XLALStringVector_TEST ( void );
36
37/**
38 * \author Reinhard Prix
39 * \file
40 * \ingroup StringVector_h
41 */
42
43/*==================== FUNCTION DEFINITIONS ====================*/
44
45int main( int argc, char *argv[] )
46{
47
48 /* sanity checks */
49 if ( argc != 1 )
50 XLAL_ERROR ( XLAL_EINVAL, "The executable '%s' doesn't support any input arguments right now.\n", argv[0] );
51
53 XLAL_ERROR ( XLAL_EFUNC, "StringVector TEST failed.\n" );
54
55 return XLAL_SUCCESS;
56
57} /* main() */
58
59/**
60 * Test various StringVector functions
61 */
62int
64{
65 return XLAL_SUCCESS;
66}
int main(int argc, char *argv[])
int XLALStringVector_TEST(void)
Test various StringVector functions.
#define XLAL_ERROR(...)
Macro to invoke a failure from a XLAL routine returning an integer.
Definition: XLALError.h:700
@ XLAL_SUCCESS
Success return value (not an error number)
Definition: XLALError.h:401
@ XLAL_EFUNC
Internal function call failed bit: "or" this with existing error number.
Definition: XLALError.h:462
@ XLAL_EINVAL
Invalid argument.
Definition: XLALError.h:409