From 863843b77bc7e745a7d234ad6b15abc1c35253cf Mon Sep 17 00:00:00 2001 From: park671 Date: Mon, 25 Nov 2024 23:12:05 +0800 Subject: [PATCH] update: add write test code --- test/test_syscall_write.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/test_syscall_write.c diff --git a/test/test_syscall_write.c b/test/test_syscall_write.c new file mode 100644 index 0000000..df86458 --- /dev/null +++ b/test/test_syscall_write.c @@ -0,0 +1,12 @@ +#include + +int add(int a, int b) { + return a+b; +} + +int main() { + char *text = "park hello world\n"; + int result = 0; + result = write(1, text, 18); + return 11; +}