min0.c
Go to the documentation of this file.
1 /* min0 gives the minimum value of integers
2 
3  Ver1.0 Apr.12,1988. */
4 
5 #include "arith.h"
6 
7 int min0(va_alist)
8 va_dcl
9 {
10  va_list ap;
11  int i,n;
12  int min,x;
13 
14  va_start(ap);
15 
16  n=va_arg(ap, int);
17  min=va_arg(ap, int);
18 
19  for(i=0; i<n-1; i++){
20  x=va_arg(ap, int);
21  if(x<min)
22  min=x;
23  }
24 
25  return(min);
26 
27  va_end(ap);
28 }
29 
30 
31 
32 
33 
34 
35 
36 
arith.h
min
#define min(x, y)
Definition: rmflags.c:17
min0
int min0(va_alist)
Definition: min0.c:7
n
GLfloat n[6][3]
Definition: cube.c:15


euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43