/* Copyright (c) 1979 Regents of the University of California */
static char sccsid
[] = "@(#)REMOVE.c 1.3 6/10/81";
register int maxnamlen
= namlim
;
* trim trailing blanks, and insure that the name
* will fit into the file structure
for (cnt
= 0; cnt
< maxnamlen
; )
if (name
[cnt
] == '\0' || name
[cnt
++] == ' ')
ERROR("%s: File name too long\n", name
);
* put the name into the buffer with null termination
for (cnt
= 0; cnt
< maxnamlen
; cnt
++)
namebuf
[cnt
] = name
[cnt
];
PERROR("Could not remove ", namebuf
);