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