1
## Copyright (C) 2008 Bill Denney
3
## This software is free software; you can redistribute it and/or modify it
4
## under the terms of the GNU General Public License as published by
5
## the Free Software Foundation; either version 3 of the License, or (at
6
## your option) any later version.
8
## This software is distributed in the hope that it will be useful, but
9
## WITHOUT ANY WARRANTY; without even the implied warranty of
10
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
## General Public License for more details.
13
## You should have received a copy of the GNU General Public License
14
## along with this software; see the file COPYING. If not, see
15
## <http://www.gnu.org/licenses/>.
18
## @deftypefn {Function File} {@var{status} =} __functionstatus__ (@var{funname})
19
## Return if a function is present in octave: -1 = not checked, 0 =
20
## missing, 1 = present
23
function status = __functionstatus__ (funname)
27
elseif ~ iscellstr (funname)
31
status = zeros (size (funname));
32
for i = 1:numel (funname)
33
if any (! (isalpha (funname{i}) | isdigit (funname{i})))
36
elseif iskeyword (funname{i}) || which (funname{i})