From e8d9017938cd020bcf62c359da0a531c984239b2 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 24 Feb 2020 02:27:40 -0300 Subject: Remove tmp/ --- tmp/api-posix.c | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 tmp/api-posix.c (limited to 'tmp/api-posix.c') diff --git a/tmp/api-posix.c b/tmp/api-posix.c deleted file mode 100644 index 9f51967..0000000 --- a/tmp/api-posix.c +++ /dev/null @@ -1,15 +0,0 @@ -/* POSIX implementation of "api.h" interface to be used in non-web contexts */ - -#include - -void platformDependentPersistInt(int n) { - FILE* fp = fopen("/tmp/persisted.txt", "w+"); - fprintf(fp, "%d", n); - fclose(fp); -} - -int platformDependentRetrieveInt() { - FILE* fp = fopen("/tmp/persisted.txt", "r"); - int persisted = fgetc(fp); - return persisted; -} -- cgit v1.2.3