#include <stdio.h>
void setup() {
static char badaboum[64];
(void)snprintf(badaboum, 32, "%03d%03d", 10, 20);
}
void loop() {
}
extern "C" {
__attribute__((weak))
int _write(int file, char *ptr, int len)
{
if (file >= 0 && file <= 2) file = (int)&Serial;
return ((class Print *)file)->write((uint8_t *)ptr, len);
}
}
void setup() {
Serial.printf("test"); // delete this line for compile error on Teensy 3.5
static char badaboum[64];
(void)snprintf(badaboum, 32, "%03d%03d", 10, 20);
}
void loop() {
}
void setup() {
static char badaboum[64];
(void)snprintf(badaboum, 32, "%03d%03d", 10, 20);
}
void loop() {
}
extern "C" {
__attribute__((weak))
void abort(void)
{
while (1) asm ("WFI");
}
}
#undef _read
#undef _write
#undef _seek
#undef _close
fp->_read = __sread;
fp->_write = __swrite; <------- could this be where they are tied together?
fp->_seek = __sseek;
fp->_close = __sclose;