extern "C" CMDAPIIMPORT int CMDParseAttributeRule ( const char * arg, const char * & end, unsigned long & attributes, int delim ) ;
This function parses an attribute mask to produce a standard 32-bit OS/2 attribute mask value suitable for passing to DosFindFirst(). It returns non-zero if an attribute mask was correctly parsed, and zero otherwise.
The arg parameter points to the start of the attribute mask. Words are broken at whitespace, as well as by the delimiter character specified by the delim parameter if it does not have the value -1. On success, the attribute mask is returned via the attributes parameter and a pointer to the first character that was not parsed is returned via the end parameter.