Open sky9t-sulia opened 1 year ago
memset will not set uint16_t type. it will only set first byte.
use this instead:
uint16_t memset16(uint16_t m, uint16_t val, size_t count) { uint16_t *buf = m;
while (count--) *buf++ = val; return m;
}
memset will not set uint16_t type. it will only set first byte.
use this instead:
uint16_t memset16(uint16_t m, uint16_t val, size_t count) { uint16_t *buf = m;
}