date and time created 81/01/16 19:34:08 by mckusick
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 17 Jan 1981 11:34:08 +0000 (03:34 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 17 Jan 1981 11:34:08 +0000 (03:34 -0800)
SCCS-vsn: usr.bin/pascal/libpc/TELL.c 1.1

usr/src/usr.bin/pascal/libpc/TELL.c [new file with mode: 0644]

diff --git a/usr/src/usr.bin/pascal/libpc/TELL.c b/usr/src/usr.bin/pascal/libpc/TELL.c
new file mode 100644 (file)
index 0000000..b7f9f0a
--- /dev/null
@@ -0,0 +1,20 @@
+/* Copyright (c) 1979 Regents of the University of California */
+
+static char sccsid[] = "@(#)TELL.c 1.1 %G%";
+
+#include "h00vars.h"
+
+/*
+ * Find current location
+ */
+TELL(curfile)
+
+       register struct iorec   *curfile;
+{
+       long loc;
+
+       loc = ftell(curfile);
+       if ((curfile->funit | SYNC) == 0)
+               loc += 1;
+       return loc;
+}