source: trunk/athena/bin/delete/util.h @ 1854

Revision 1854, 898 bytes checked in by jik, 35 years ago (diff)
added is_deleted and is_dotfile macros
Line 
1/*
2 * $Source: /afs/dev.mit.edu/source/repository/athena/bin/delete/util.h,v $
3 * $Author: jik $
4 * $Header: /afs/dev.mit.edu/source/repository/athena/bin/delete/util.h,v 1.5 1989-05-04 14:29:19 jik Exp $
5 *
6 * This file is part of a package including delete, undelete,
7 * lsdel, expunge and purge.  The software suite is meant as a
8 * replacement for rm which allows for file recovery.
9 *
10 * Copyright (c) 1989 by the Massachusetts Institute of Technology.
11 * For copying and distribution information, see the file "mit-copyright.h."
12 */
13#include "mit-copyright.h"
14
15char *append();
16char *convert_to_user_name();
17char *firstpart();
18char *lastpart();
19char *reg_firstpart();
20char *strindex();
21char *strrindex();
22
23#define is_dotfile(A) ((*A == '.') && \
24                       ((*(A + 1) == '\0') || \
25                        ((*(A + 1) == '.') && \
26                         (*(A + 2) == '\0'))))
27
28#define is_deleted(A) ((*A == '.') && (*(A + 1) == '#'))
Note: See TracBrowser for help on using the repository browser.