--- Robert Collins <[EMAIL PROTECTED]> wrote: > Some confusion here: I was meaning that having something like: > const char *revision="$Revision: $ "; > in the file allows you to then use: > const char *version = revision[11]; > to obtain the correct version number. > > Rob
I'm not sure I understand. Hard-code the revision in a const char instead of directly in a printf? Is that just so it's near the top of the file and easier to get to? Or is there a way to automate (without a bunch of sed mess in the Makefile) version numbers? It looks like the mingw headers have a lines like "* $Revision: 1.2 $ " in the comments, but I assume that's for a script of some sort to use. __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com