aboutsummaryrefslogtreecommitdiff
path: root/tmp/api-posix.c
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-24 02:27:40 -0300
committerEuAndreh <eu@euandre.org>2020-02-24 02:27:40 -0300
commite8d9017938cd020bcf62c359da0a531c984239b2 (patch)
tree6c17cdb6f65b2cb27d5ddb3e7e96c3b724804519 /tmp/api-posix.c
parentMove draft posts to _drafts (diff)
downloadeuandre.org-e8d9017938cd020bcf62c359da0a531c984239b2.tar.gz
euandre.org-e8d9017938cd020bcf62c359da0a531c984239b2.tar.xz
Remove tmp/
Diffstat (limited to '')
-rw-r--r--tmp/api-posix.c15
1 files changed, 0 insertions, 15 deletions
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 <stdio.h>
-
-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;
-}