This repository has been archived on 2026-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
can/Inc/mmr_can_util.h
T
Stefano Calabretti 3cdd6da051 First commit
2021-11-28 12:12:27 +01:00

15 lines
314 B
C

#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_ */