Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
380 B

  1. // Copyright (c) 1993-1999 Microsoft Corporation
  2. #include "y1.h"
  3. setunion( a, b ) SSIZE_T *a, *b;
  4. {
  5. /* set a to the union of a and b */
  6. /* return 1 if b is not a subset of a, 0 otherwise */
  7. register i, sub;
  8. SSIZE_T x;
  9. sub = 0;
  10. SETLOOP(i)
  11. {
  12. *a = (x = *a)|*b++;
  13. if( *a++ != x ) sub = 1;
  14. }
  15. return( sub );
  16. }