home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
maths
/
rlab
/
controls
/
CTB
/
isstr
< prev
next >
Wrap
Text File
|
1995-11-15
|
503b
|
26 lines
//---------------------------------------------------------------------------
//
// isstr
//
// Syntax: i=isstr(a)
//
// This routine checks if the input argument a is a string. It
// returns a "1" if it is a string and a 0 otherwise.
//
// Copyright (C), by Jeffrey B. Layton, 1994
// Version JBL 940918
//---------------------------------------------------------------------------
isstr = function(a)
{
local(i)
if (class(a) == "string") {
i=1;
else
i=0;
}
return i
};