PWB Extensions Help (ext.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
BadArg
                                             Up Contents Index Back
─────PWB Extensions─────────────────────────────────────────────────────────
 
  Syntax:  flagType BadArg( void );
 
  Returns: Always returns FALSE.
 
  See:     Command Table
 
     BadArg generates an error message stating that the user argument is
     invalid. This function is rarely used because PWB looks at the
     function type as declared in the command table and rejects commands
     with incompatible argument types before the extension function is
     called.
 
     You can use BadArg to signal a failed test for valid input that the
     function performs beyond the tests that PWB automatically performs
     for the argument type. For example, you can use BadArg to exclude
     numeric arguments that are out of range.
                                    -♦-