Starport BBS
VIEWER: sp.c MODE: TEXT (ASCII)
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <conio.h>
#include <io.h>
#include <dos.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include "c:\wc\myh\macro.h"

        byte *modplace;
        int handle;
        int bela;

void AllocateMem() {
        modplace  = (byte *)malloc(1000000);
	}
                          
#include "sp32.h"

void DeAllocateMem() {
        free(modplace);
	}

void main(int argc,char *argv[]) {
        if(argc==2){
	AllocateMem();
        handle = open (argv[1], O_RDONLY | O_BINARY);
        read(handle, modplace, 1000000);
        close(handle);
        SP_START(modplace);
        PLAYER();
//        while(!kbhit()) {
//                        POLLMUSIC();
//                        }
        SP_STOP();
	DeAllocateMem();
        }
        else printf("Usage: SP32 <s3mname>");
}
[ RETURN TO DIRECTORY ]