summaryrefslogtreecommitdiff
path: root/src/stdio/ftell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/ftell.c')
-rw-r--r--src/stdio/ftell.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/stdio/ftell.c b/src/stdio/ftell.c
new file mode 100644
index 00000000..796a468c
--- /dev/null
+++ b/src/stdio/ftell.c
@@ -0,0 +1,26 @@
+#include <stdio.h>
+
+/** get the file position indicator **/
+long int ftell(FILE *stream)
+{
+ (void)stream;
+ /* TODO */
+ /*
+ RETURN_SUCCESS(the current file position);
+ RETURN_FAILURE(LITERAL(-1L));
+ */
+ return -1L;
+}
+
+/***
+obtains the current value of the file position indicitor of ARGUMENT(stream).
+
+For binary streams, the indicator is the current byte position.
+***/
+
+/*
+UNSPECIFIED(The meaning of the file position indicator for text streams)
+*/
+/*
+STDC(1)
+*/