First commit

This commit is contained in:
Stefano Calabretti
2021-11-28 12:12:27 +01:00
commit 3cdd6da051
7 changed files with 217 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#ifndef INC_MMR_CAN_UTIL_H_
#define INC_MMR_CAN_UTIL_H_
#include <stdint.h>
#include <string.h>
#define stringArrayLength(array) \
stringBufferLength((array), sizeof(array))
size_t stringBufferLength(uint8_t *buffer, size_t maxLen) {
return strnlen((const char*)buffer, maxLen);
}
#endif /* INC_UTIL_H_ */