clibs
Tiny but handy utility libraries for C
Macros
clibs_control_structure.h File Reference

Common control structures. More...

Go to the source code of this file.

Macros

#define TIMES(count, block)
 Repeat a block of code some time(s) More...
 

Detailed Description

Common control structures.

Author
ByteBard

Macro Definition Documentation

◆ TIMES

#define TIMES (   count,
  block 
)
Value:
{ \
size_t i; \
for (i = 0; i < (count); ++i) { \
(block); \
} \
}

Repeat a block of code some time(s)

Parameters
countCounter
blockA block of code