

            delarg (2) --- delete a command line argument            03/23/80


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 integer function delarg (ap)
                 integer ap
                 
                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Delarg'  deletes  the  command  line  argument indicated by
                 'ap'.  Subsequent arguments  have  their  positions  shifted
                 left by one.  'Delarg' returns OK if there is an argument at
                 the position specified by 'ap', and EOF otherwise.

                 'Delarg'  can  be  used  by  an  argument parsing routine to
                 discard arguments that it recognizes,  while  leaving  other
                 arguments  for  later  action.   Then, routines subsequently
                 examining the command line arguments  are  not  bothered  by
                 arguments already processed.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 'Delarg'  simply shifts the pointers for arguments following
                 'ap' in the Subsystem common  area  down  by  one  and  then
                 reduces the argument count by one.


            _S_e_e _A_l_s_o

                 getarg (2), parscl (2)


























            delarg (2)                    - 1 -                    delarg (2)


