summaryrefslogtreecommitdiff
path: root/prec.c
diff options
context:
space:
mode:
Diffstat (limited to 'prec.c')
-rw-r--r--prec.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/prec.c b/prec.c
new file mode 100644
index 0000000..1d25213
--- /dev/null
+++ b/prec.c
@@ -0,0 +1,14 @@
+#include <u.h>
+#include <libc.h>
+
+void
+main()
+{
+ char s[] = ",.";
+ char *p;
+
+ p = s;
+ while(*p++ == '.' || *p == '.')
+ print("dot");
+ exits(0);
+}