Modular C
C◼schar◼minmax: symbols inserted from C◼snippet◼minmax.
+ Collaboration diagram for C◼schar◼minmax: symbols inserted from C◼snippet◼minmax.:
C◼schar C◼schar◼minv (__size n, C◼schar volatile arr[n])
 Compute the minimum value of array arr. More...
 
C◼schar C◼schar◼maxv (__size n, C◼schar volatile arr[n])
 Compute the minimum value of array arr. More...
 
#define C◼schar◼min(...)   C◼schar◼minv(C◼snippet◼minmax◼ALEN(C◼schar, __VA_ARGS__), C◼snippet◼minmax◼ARRAY(C◼schar, __VA_ARGS__))
 Compute the minimum of the argument list. More...
 
#define C◼schar◼max(...)   C◼schar◼maxv(C◼snippet◼minmax◼ALEN(C◼schar, __VA_ARGS__), C◼snippet◼minmax◼ARRAY(C◼schar, __VA_ARGS__))
 Compute the minimum of the argument list. More...
 

Detailed Description

See also
C◼snippet◼minmax snippet: identifiers inserted directly to an importer for details

This import does not fill any slots.

Macro Definition Documentation

§ C◼schar◼max

#define C◼schar◼max (   ...)    C◼schar◼maxv(C◼snippet◼minmax◼ALEN(C◼schar, __VA_ARGS__), C◼snippet◼minmax◼ARRAY(C◼schar, __VA_ARGS__))

Compute the minimum of the argument list.

Definition at line 209 of file C-schar.c.

§ C◼schar◼min

#define C◼schar◼min (   ...)    C◼schar◼minv(C◼snippet◼minmax◼ALEN(C◼schar, __VA_ARGS__), C◼snippet◼minmax◼ARRAY(C◼schar, __VA_ARGS__))

Compute the minimum of the argument list.

Definition at line 189 of file C-schar.c.

Function Documentation

§ C◼schar◼maxv()

C◼schar C◼schar◼maxv ( __size  n,
C◼schar volatile  arr[n] 
)
inline

Compute the minimum value of array arr.

Definition at line 195 of file C-schar.c.

195  {
196 #line 39 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
197  C◼schar ret = arr[0];
198  for (__size i = 1; i < n; ++i) {
199 #line 41 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
200  C◼schar val = arr[i];
201  if (val > ret) ret = val;
202  }
203  return ret;
204 }
C◼schar C◼schar

§ C◼schar◼minv()

C◼schar C◼schar◼minv ( __size  n,
C◼schar volatile  arr[n] 
)
inline

Compute the minimum value of array arr.

Definition at line 175 of file C-schar.c.

175  {
176 #line 21 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
177  C◼schar ret = arr[0];
178  for (__size i = 1; i < n; ++i) {
179 #line 23 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
180  C◼schar val = arr[i];
181  if (val < ret) ret = val;
182  }
183  return ret;
184 }
C◼schar C◼schar