1
<?xml version="1.0" encoding="UTF-8"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2008 - INRIA - Allan CORNET
7
* This file must be used under the terms of the CeCILL.
8
* This source file is licensed as described in the file COPYING, which
9
* you should have received as part of this distribution. The terms
10
* are also available at
11
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
14
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="fileext">
16
<refname>fileext</refname>
17
<refpurpose>returns extension for a file path</refpurpose>
20
<title>Calling Sequence</title>
21
<synopsis>extension = fileext(fullpath)</synopsis>
24
<title>Arguments</title>
29
<para>a string matrix, the given file path</para>
33
<term>extension</term>
35
<para>a string matrix, the extension part is any or ''</para>
41
<title>Description</title>
43
<code>extension=fileext(fullpath)</code> splits the fullpath character string in the extension part including the dot.
47
<title>Examples</title>
48
<programlisting role="example"><![CDATA[
49
extension = fileext('SCI/etc/scilab.start')
50
extension = fileext(['SCI/etc/scilab.start';'SCI/etc/scilab.quit'])
53
<refsection role="see also">
54
<title>See Also</title>
55
<simplelist type="inline">
57
<link linkend="fileparts">fileparts</link>