Skip to content

Commit

Permalink
Add version information.
Browse files Browse the repository at this point in the history
  • Loading branch information
abenson committed Nov 21, 2015
1 parent 7db020c commit 33110ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions minitalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ SOFTWARE.

/* minichat - small chat system for multiple users on a UNIX-like host */

#define VERSION "0.1.1"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -244,6 +246,7 @@ int main(int argc, char *argv[])

/* We always require a file, will guess a nick if none provided.*/
if(argc < 2) {
fprintf(stderr, "%s v%s - a small chat system for multiple users\n", argv[0], VERSION);
fprintf(stderr, "usage: %s file [nick]\n", argv[0]);
return 1;
}
Expand Down

0 comments on commit 33110ed

Please sign in to comment.