summaryrefslogtreecommitdiff
path: root/tests/unit_tests/test_string/scilabcode/strchrtest.sci
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-07-10 22:08:27 +0530
committerAbhinav Dronamraju2017-07-10 22:08:27 +0530
commitd2c00f5343785085bcfefb62cbc041a5cffa8f31 (patch)
tree3d4fc371c30f2340af2def6dcabeb4fd4821eaf8 /tests/unit_tests/test_string/scilabcode/strchrtest.sci
parentc7d123014c05daaa6c7ce32bc5e86e5f3e7e4692 (diff)
parent49d8281d2da2f4c6bf0e62d148a8a7328d3bf970 (diff)
downloadScilab2C_fossee_old-d2c00f5343785085bcfefb62cbc041a5cffa8f31.tar.gz
Scilab2C_fossee_old-d2c00f5343785085bcfefb62cbc041a5cffa8f31.tar.bz2
Scilab2C_fossee_old-d2c00f5343785085bcfefb62cbc041a5cffa8f31.zip
Pulled from upstream master
Diffstat (limited to 'tests/unit_tests/test_string/scilabcode/strchrtest.sci')
-rw-r--r--tests/unit_tests/test_string/scilabcode/strchrtest.sci6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit_tests/test_string/scilabcode/strchrtest.sci b/tests/unit_tests/test_string/scilabcode/strchrtest.sci
new file mode 100644
index 0000000..f8d3419
--- /dev/null
+++ b/tests/unit_tests/test_string/scilabcode/strchrtest.sci
@@ -0,0 +1,6 @@
+function strchrtest()
+ s="This is a sample string";
+ ch="s";
+ y=strchr(s,ch);
+ disp(y);
+endfunction