Mapper
libraries
shef
irang.c
Go to the documentation of this file.
1
/*Translated by FOR_C, v3.4.2 (-), on 04/06/95 at 13:53:50 */
2
/*FOR_C Options SET: c=2 com=u do=r44 ftn=ln6kk op=iv s=dvnk str=l sq=i */
3
#define _POSIX_SOURCE
4
#include <stdio.h>
5
#include <stdlib.h>
6
#include <ctype.h>
7
#include <dirent.h>
8
#include <unistd.h>
9
#include <math.h>
10
#include <string.h>
11
#include <fcntl.h>
12
#include <sys/stat.h>
13
#include "
shef_structs_external.h
"
14
15
/*---------------------------------------------------------------------
16
17
NAME
18
SUBROUTINE IRANG(I,MIN,MAX,STATUS)
19
20
PURPOSE
21
To check if an integer is in the range MIN <= I <= MAX
22
23
VERSION and UPDATES
24
1.0 APR 82 Geoffrey M. Bonnin
25
Original Version
26
1.1 JUN 89 David G. Brandon
27
Adapted to QNX NWS Hydromet
28
2.0 MAY 94 David G. Brandon
29
Also Translated to 'C' using FOR_C
30
31
---------------------------------------------------------------------*/
32
33
void
irang
(
i
, min_, max_, status)
34
short
int
*
i
, *min_, *max_, *status;
35
{
36
37
*status = 0;
38
if
( *
i
< *min_ )
39
*status = 1;
40
if
( *
i
> *max_ )
41
*status = 1;
42
43
return
;
44
45
}
46
i
static int i
Definition:
get_apps_defaults.c:110
irang
void irang(short int *i, short int *min_, short int *max_, short int *status)
Definition:
irang.c:33
shef_structs_external.h
Generated by
1.9.1