summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci
diff options
context:
space:
mode:
authorAnkitr192017-07-07 12:47:56 +0530
committerAnkitr192017-07-07 12:47:56 +0530
commit14b75917c2c8b8e139bfd2442ec007341af2b6e0 (patch)
tree0d91694e0e2eca49305fe0fe6d2a7e09f0979739 /2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci
parenta4f297592658439bbd7ada3105296fa4b5f81884 (diff)
downloadScilab2C-14b75917c2c8b8e139bfd2442ec007341af2b6e0.tar.gz
Scilab2C-14b75917c2c8b8e139bfd2442ec007341af2b6e0.tar.bz2
Scilab2C-14b75917c2c8b8e139bfd2442ec007341af2b6e0.zip
Demos and RPi compiler compatibility
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