From 14b75917c2c8b8e139bfd2442ec007341af2b6e0 Mon Sep 17 00:00:00 2001 From: Ankitr19 Date: Fri, 7 Jul 2017 12:47:56 +0530 Subject: Demos and RPi compiler compatibility --- 2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci (limited to '2.3-1/tests/unit_tests/test_string/scilabcode/strncpytest.sci') 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 -- cgit