Program: MKLSEXISTFIELD

  mklsexistfield.......test whether a specific field exists in a given struct
 
  call: yesno=mklsexistfield(str,fname);
 
        str: a structure variable
        fname: string containing the name of the field the existence of which
               should be checked
 
  result: yesno: 1 if field exists in STR
                 0 if not
 
  given a structure like this
 
  person.firstname='john';
  person.name='doe';
 
  calling mklsexistfield(person,'age') will result in 0, whereas
  calling mklsexistfield(person,'name') will result in 1.
 
  Martin Knapmeyer, 28.11.2002, 23.06.2005

Read M-File Source Code


eof.