Adding DisEMBL dependency Tisean executable
[jabaws.git] / binaries / src / disembl / Tisean_3.0.1 / source_f / any_s.f
1 c===========================================================================
2 c
3 c   This file is part of TISEAN
4
5 c   Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber
6
7 c   TISEAN is free software; you can redistribute it and/or modify
8 c   it under the terms of the GNU General Public License as published by
9 c   the Free Software Foundation; either version 2 of the License, or
10 c   (at your option) any later version.
11 c
12 c   TISEAN is distributed in the hope that it will be useful,
13 c   but WITHOUT ANY WARRANTY; without even the implied warranty of
14 c   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 c   GNU General Public License for more details.
16 c
17 c   You should have received a copy of the GNU General Public License
18 c   along with TISEAN; if not, write to the Free Software
19 c   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 c
21 c===========================================================================
22 c   any_s.f
23 c   extract numbers from strings
24 c   author T. Schreiber (1998)
25 c===========================================================================
26
27       function i_s(s,ierr)
28       character*(*) s
29
30       ierr=0
31       read(s,'(i20)',err=777) i_s
32       if(s.ne.'-'.and.s.ne.'+') return   ! reject a solitary - or +
33  777  ierr=1
34       end
35
36       function f_s(s,ierr)
37       character*(*) s
38
39       ierr=0
40       read(s,'(f20.0)',err=777) f_s
41       if(s.ne.'-'.and.s.ne.'+') return   ! reject a solitary - or +
42  777  ierr=1
43       end