My Project
Macros | Functions | Variables
libtpcmisc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include "include/libtpcmisc.h"
Include dependency graph for libtpcmisc.c:

Macros

#define LIB_NAME   "libtpcmisc"
 
#define SWAP   1
 
#define MAXVAL   100000;
 

Functions

void print_usage ()
 
int main (int argc, char *argv[])
 

Variables

int VERBOSE = 0
 

Macro Definition Documentation

◆ LIB_NAME

#define LIB_NAME   "libtpcmisc"

Copyright (c) 2004-2008 by Turku PET Centre

File: libtpcmisc.c

Purpose: methods for testing functions in the library libtpcmisc, and for printing out libtpcmisc information, such as Readme, History and build information.

NOTICE! This program should always have the same version with the library.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details: http://www.gnu.org/copyleft/lesser.html

You should have received a copy of the GNU Lesser General Public License along with this library/program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Turku PET Centre, Turku, Finland, http://www.turkupetcentre.fi/

Modification history: 2005-02-22 1.0.0 Jarkko Johansson 2005-04-26 1.1.0 JJ 2006-03-26 1.1.1 Vesa Oikonen 2006-06-03 1.1.2 VO 2006-07-21 1.1.3 VO 2006-07-25 1.1.4 VO 2006-10-02 1.1.5 VO Bug correction version. Compiles independently without other TPC libraries. 2006-10-12 1.1.6 VO Bug correction version. 2006-10-23 1.1.7 VO Added files quots.c and quots.h. See iftread.c. 2007-02-02 1.2.0 VO 2007-03-30 1.2.1 Kaisa Liukko Added memory_handler.c which is used by lse and lsi (libtpcmodel). Added isotope I-124 into halflife.c and halflife.h. 2008-07-14 1.3.2 VOLibrary name.

◆ MAXVAL

#define MAXVAL   100000;

◆ SWAP

#define SWAP   1

Serial numbers for function names.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Prints library information and runs some tests

Parameters
numberof arguments
pointerto arrays of argument string

References libtpcmisc_print_build(), libtpcmisc_print_dhistory(), libtpcmisc_print_dreadme(), libtpcmisc_print_history(), libtpcmisc_print_readme(), print_usage(), and VERBOSE.

Here is the call graph for this function:

◆ print_usage()

void print_usage ( )

Function for printing the usage information of the libtpcmisc test program.

Prints usage information

References LIB_NAME, and libtpcmisc_print_build().

Referenced by main().

Here is the call graph for this function:

Variable Documentation

◆ VERBOSE

int VERBOSE = 0

Referenced by main().