mirror of https://github.com/lianthony/NT4.0
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.
16 lines
354 B
16 lines
354 B
#include "y3.h"
|
|
|
|
void warray( char *s, int *v, int n )
|
|
{
|
|
|
|
register i;
|
|
|
|
fprintf( ftable, "short %s%s[]={\n", pszPrefix ? pszPrefix : "", s );
|
|
for( i=0; i<n; )
|
|
{
|
|
if( i%10 == 0 ) fprintf( ftable, "\n" );
|
|
fprintf( ftable, "%4d", v[i] );
|
|
if( ++i == n ) fprintf( ftable, " };\n" );
|
|
else fprintf( ftable, "," );
|
|
}
|
|
}
|