00001 00002 c 00003 c Copyright (c) 1986,1987,1988,1989,1990,1991,1992,1993, 00004 c by Steve McMillan, Drexel University, Philadelphia, PA. 00005 c 00006 c All rights reserved. 00007 c 00008 c Redistribution and use in source and binary forms are permitted 00009 c provided that the above copyright notice and this paragraph are 00010 c duplicated in all such forms and that any documentation, 00011 c advertising materials, and other materials related to such 00012 c distribution and use acknowledge that the software was developed 00013 c by the author named above. 00014 c 00015 c THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 00016 c IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 00017 c WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00018 c 00019 c 00020 c Input and output routines to mimic VAX extensions. 00021 c 00022 subroutine readin(lun,string,nl,*) 00023 save 00024 c 00025 c "read(lun,'(q,a200)')nl,string" 00026 c 00027 character*(*) string 00028 c 00029 string=' ' 00030 read(lun,'(a200)',end=1000,err=1000)string 00031 c 00032 do 1 nl=200,1,-1 00033 if(string(nl:nl).gt.' ')return 00034 1 continue 00035 return 00036 c 00037 1000 return 1 00038 end