Skip to content

Commit

Permalink
update: add write test code
Browse files Browse the repository at this point in the history
  • Loading branch information
park671 committed Nov 25, 2024
1 parent 3455caf commit 863843b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_syscall_write.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <linux_aarch64_syscall.h>

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;
}

0 comments on commit 863843b

Please sign in to comment.