On Thu, Jun 15, 2023 at 6:26 PM Herve Codina <herve.codina@xxxxxxxxxxx> wrote: > > Introduce min_array() (resp max_array()) in order to get the > minimal (resp maximum) of values present in an array. Only in the case if you need to send a new version (otherwise a follow up will be okay)... ... > + * The first typeof(&(array)[0]) is needed in order to support arrays of both > + * 'int *buff' and 'int buf[N]' types. int buff[N] ? > + * The array can be an array of const items. > + * typeof() keeps the const qualifier. Use __unconst_typeof() in order to + _integer > + * discard the const qualifier for the __element variable. -- With Best Regards, Andy Shevchenko