summaryrefslogtreecommitdiff
path: root/dviware/beebe/src/nosignex.h
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/beebe/src/nosignex.h')
-rw-r--r--dviware/beebe/src/nosignex.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/dviware/beebe/src/nosignex.h b/dviware/beebe/src/nosignex.h
new file mode 100644
index 0000000000..2f87b47f1e
--- /dev/null
+++ b/dviware/beebe/src/nosignex.h
@@ -0,0 +1,22 @@
+/* -*-C-*- nosignex.h */
+/*-->nosignex*/
+/**********************************************************************/
+/****************************** nosignex ******************************/
+/**********************************************************************/
+
+UNSIGN32
+nosignex(fp, n) /* return n byte quantity from file fd */
+register FILE *fp; /* file pointer */
+register BYTE n; /* number of bytes (1..4) */
+
+{
+ register UNSIGN32 number; /* number being constructed */
+
+ number = 0;
+ while (n--)
+ {
+ number <<= 8;
+ number |= getc(fp);
+ }
+ return((UNSIGN32)number);
+}