Source

libamos / example.c

Full commit
#include <stdio.h>
#include "libamos.h"


int main(int argc, char* argv[]){
	if(loadbank("test.bnk",1)==-1){
		printf("Error description: %s\n", error_description);
		return 0;
	}
	printf("Bank size: %d\n",sizebank(1));
	freebank(1);
	printf("A=%d\n",asc("A"));
	randomize(-1);
	printf("Random number: %f\n",rnd(100));
	return 0;
}