spz-lab4/inc/macro.h

11 lines
165 B
C

#ifndef INC_MACRO_H
#define INC_MACRO_H
#define LEN(x) ( sizeof(x) / sizeof((x)[0]) )
#define FOR(i, max) for (unsigned int (i) = 0; (i) < (max); (i)++)
#endif