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.

19 lines
433 B

  1. // Copyright (c) 1993-1999 Microsoft Corporation
  2. #include "y3.h"
  3. void
  4. warray( char *s, SSIZE_T *v, int n )
  5. {
  6. register i;
  7. fprintf( ftable, "short %s%s[]={\n", pszPrefix ? pszPrefix : "", s );
  8. for( i=0; i<n; )
  9. {
  10. if( i%10 == 0 ) fprintf( ftable, "\n" );
  11. fprintf( ftable, "%4d", v[i] );
  12. if( ++i == n ) fprintf( ftable, " };\n" );
  13. else fprintf( ftable, "," );
  14. }
  15. }