Files
sicspsi/tecs/sys_cmdpar.f
zolliker c7280ec25d - bug fix in coc_server.c
- bug fixes in tecs
- new system to determine host:port in six and tecs_client
2005-09-21 11:06:23 +00:00

25 lines
474 B
Fortran
Executable File

!!-----------------------------------------------------------------------------
!!
subroutine SYS_GET_CMDPAR(STR, L) !!
!! ---------------------------------
!!
character*(*) STR !!
integer L !!
integer i,iargc
l=0
str=' '
do i=1,iargc()
if (l .lt. len(str)) then
call getarg(i, str(l+1:))
call str_trim(str, str, l)
l=l+1
endif
enddo
if (l .gt. 0) then
if (str(1:l) .eq. ' ') l=0
if (str(l:l) .eq. ' ') l=l-1
endif
end