Mercurial > hg > mlmmj
view src/print-version.c @ 17:b045203f558b
Add GPL info in top of files where it was missing, and remove a file that
was committed by mistake
author | mmj |
---|---|
date | Thu, 22 Apr 2004 23:00:27 +1000 |
parents | 21ce01de8109 |
children | 3f177909efc8 |
line wrap: on
line source
/* Copyright (C) 2003, 2004 Mads Martin Joergensen <mmj at mmj.dk> * * $Id$ * * This file is redistributable under version 2 of the GNU General * Public License as described at http://www.gnu.org/licenses/gpl.txt */ #include <stdio.h> #include <string.h> #include <strings.h> #include "mlmmj.h" void print_version(const char *prg) { char *lastslashindex = strrchr(prg, '/'); if(!lastslashindex) lastslashindex = (char *)prg; else lastslashindex++; printf("%s version "VERSION"\n", lastslashindex); }