/* POSIX implementation of "api.h" interface to be used in non-web contexts */#include<stdio.h>voidplatformDependentPersistInt(intn){FILE*fp=fopen("/tmp/persisted.txt","w+");fprintf(fp,"%d",n);fclose(fp);}intplatformDependentRetrieveInt(){FILE*fp=fopen("/tmp/persisted.txt","r");intpersisted=fgetc(fp);returnpersisted;}