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
437 B

  1. // Copyright (c) 1993-1999 Microsoft Corporation
  2. #include "y4.h"
  3. void
  4. arout( char *s, SSIZE_T *v, SSIZE_T n )
  5. {
  6. SSIZE_T 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. }