delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/06/05:01:30

Date: Mon, 6 Jul 1998 12:00:11 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: OoHOSEoO <oohoseoo AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: fnsplit()'s return - flags?
In-Reply-To: <1998070600164800.UAA00423@ladder01.news.aol.com>
Message-ID: <Pine.SUN.3.91.980706115949.26454L-100000@is>
MIME-Version: 1.0

On 6 Jul 1998, OoHOSEoO wrote:

> The function fnsplit() in dir.h returns an integer value with different bit
> flags... how exactly do I use them?  Subtract then hex values
> somehow? bitwise & with the flag constant?

The latter.  The flags are single-bit constants (see dir.h), so
(flag & WILDCARDS) says whether the argument included wildcards, etc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019