

            cant (2) --- print cant open file message                02/24/82


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 subroutine cant (file_name)
                 character file_name (ARB)

                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Cant'  is  a  Kernighan/Plauger subroutine normally used to
                 report  errors  after  an  attempt  to  open  a  file.   The
                 'file_name'   supplied  (which  must  be  an  EOS-terminated
                 string) is printed on ERROUT, followed by the message "can't
                 open", and an immediate return to the shell is taken.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 'Cant' calls 'putlin' to print the  filename  supplied,  and
                 'error'  to print the "can't open" message and return to the
                 Subsystem command interpreter.


            _C_a_l_l_s

                 putlin, error


            _S_e_e _A_l_s_o

                 open (2), create (2), remark (2)


























            cant (2)                      - 1 -                      cant (2)


