12 lines
240 B
C
Raw Normal View History

#include "weak_under_alias.h"
#include <string.h>
#include <unistd.h>
2023-09-30 20:31:58 +02:00
extern ssize_t _bsp_write(int, const void *, size_t);
2023-09-30 20:31:58 +02:00
int __wrap_puts(const char *s) {
int len = strlen(s);
return _bsp_write(0, s, len);
2023-09-30 20:31:58 +02:00
}
weak_under_alias(puts);