summaryrefslogtreecommitdiff
path: root/fonts/utilities/fontload/src/fstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/utilities/fontload/src/fstat.c')
-rw-r--r--fonts/utilities/fontload/src/fstat.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/fonts/utilities/fontload/src/fstat.c b/fonts/utilities/fontload/src/fstat.c
new file mode 100644
index 0000000000..36fca11030
--- /dev/null
+++ b/fonts/utilities/fontload/src/fstat.c
@@ -0,0 +1,17 @@
+# include <stdio.h>
+
+int main()
+{
+ static char buf[4096];
+
+ while ( fgets(buf,sizeof(buf),stdin) != NULL )
+ {
+ int cnt;
+ char *cp;
+ for( cp = buf; *cp && *cp != '/' ; cp++ );
+ *cp++ = 0;
+ for( cnt = 0; *cp ; cp++ ) if ( *cp == '/' ) cnt++;
+ printf("%s & %d\\cr\n",buf,cnt);
+ }
+ return 0;
+}