Logo Search packages:      
Sourcecode: kbd version File versions  Download package

version.h

#include <string.h>
#include <stdlib.h>

#define VERSION "1.12"

char *progname;

static inline void
set_progname(char *name) {
      char *p;

      p = rindex(name, '/');
      progname = (p ? p+1 : name);
}

static inline void
print_version_and_exit(void) {
      printf(_("%s from %s\n"), progname, "kbd-" VERSION);
      exit(0);
}

Generated by  Doxygen 1.6.0   Back to index