summaryrefslogtreecommitdiff
path: root/tests/libc/test_printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libc/test_printf.c')
-rw-r--r--tests/libc/test_printf.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/libc/test_printf.c b/tests/libc/test_printf.c
new file mode 100644
index 0000000..d2fc849
--- /dev/null
+++ b/tests/libc/test_printf.c
@@ -0,0 +1,15 @@
+#include "string.h"
+#include "stdlib.h"
+#include "stdio.h"
+
+int main( void )
+{
+ char *s = "test_string";
+ int i = 47;
+ char c = 'X';
+
+ printf( "string '%s', decimal %d, hex 0x%X, character '%c'\n",
+ s, i, i, c );
+
+ exit( 0 );
+}