(root)/
util-linux-2.39/
include/
rpmatch.h
       1  /*
       2   * No copyright is claimed.  This code is in the public domain; do with
       3   * it what you wish.
       4   */
       5  #ifndef UTIL_LINUX_RPMATCH_H
       6  #define UTIL_LINUX_RPMATCH_H
       7  
       8  #ifndef HAVE_RPMATCH
       9  #define rpmatch(r) \
      10  	(*r == 'y' || *r == 'Y' ? 1 : *r == 'n' || *r == 'N' ? 0 : -1)
      11  #endif
      12  
      13  #define RPMATCH_YES	 1
      14  #define RPMATCH_NO	 0
      15  #define RPMATCH_INVALID	-1
      16  
      17  #endif /* UTIL_LINUX_RPMATCH_H */