summaryrefslogtreecommitdiff
path: root/user.h
diff options
context:
space:
mode:
Diffstat (limited to 'user.h')
-rw-r--r--user.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/user.h b/user.h
new file mode 100644
index 0000000..b0e602b
--- /dev/null
+++ b/user.h
@@ -0,0 +1,20 @@
+#ifndef _USER_H_
+#define _USER_H_
+
+#define USERS_MAX 100
+
+struct user_t {
+ unsigned long hash;
+ char *nick;
+ unsigned long lines;
+ unsigned long long words;
+ struct user_t *next;
+};
+
+void user_init();
+struct user_t *user_get(char *nick);
+void user_free();
+
+extern struct user_t *users;
+
+#endif