summaryrefslogtreecommitdiffstats
path: root/lib/libc/putchar.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/libc/putchar.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libc/putchar.c b/lib/libc/putchar.c
new file mode 100644
index 0000000..1f919d1
--- /dev/null
+++ b/lib/libc/putchar.c
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2013-2023, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <stdio.h>
+
+#pragma weak putchar
+int putchar(int c)
+{
+ return c;
+}