This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/rewind.c

19 lines
291 B
C

#include <stdio.h>
static void assemble_pass( int passno )
{
printf( "Pass %d\n", passno );
}
void main()
{
FILE *fp;
if( (fp = fopen( "program.asm", "r")) != NULL ) {
assemble_pass( 1 );
rewind( fp );
assemble_pass( 2 );
fclose( fp );
}
}