summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci')
-rw-r--r--2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci6
1 files changed, 6 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci b/2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci
new file mode 100644
index 00000000..14eceb83
--- /dev/null
+++ b/2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci
@@ -0,0 +1,6 @@
+function strncpytest()
+ ss="Ankit Raj";
+ nn=5;
+ resu=strncpy(ss,nn);
+ disp(resu);
+endfunction