diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2023-05-20 23:53:12 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2023-05-20 23:53:12 -0400 |
commit | bee7954037af2025fdeae9a75f0c113cd39024cb (patch) | |
tree | 775fc528161f507cf6aab4fddaa4f1ef922860c9 /tnslc/read_file_test.tnsl | |
parent | ba0ffe00d0c62c8ac8e0f98596193b69975c9fe9 (diff) |
File copy example
Diffstat (limited to 'tnslc/read_file_test.tnsl')
-rw-r--r-- | tnslc/read_file_test.tnsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tnslc/read_file_test.tnsl b/tnslc/read_file_test.tnsl index 60c4c5b..cd8299b 100644 --- a/tnslc/read_file_test.tnsl +++ b/tnslc/read_file_test.tnsl @@ -1,6 +1,8 @@ :include "c_wrap.tnsl" +:include "utils.tnsl" {}uint8 usage_msg = "Usage: read_file.exe [file to read] [file to write]\n\0" +{}uint8 ok_msg = "Ok!\n\0" {}uint8 print_one = "\0\0" {}uint8 nl = "\n\0" @@ -19,6 +21,8 @@ /; if (argc < 2) _printf(~usage_msg{0}) return 1 + ;; else + _printf(~ok_msg{0}) ;/ _printf(argv{1}) |