Thread: auto build date

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    19

    Question auto build date

    does anyone know how I can include the current build date as a variable in my code???

    I'd like to use it as a somewhat dirty revision numbering system.

    thanks

    Matt

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    const char *build_date = __DATE__;

    Should work in any ANSI-C compiler

    There's also __TIME__ as well

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    19
    thanks allot...

    worked like a charm...
    ~good monkeys, Excelent typewritters!...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. PlaySound
    By cangel in forum C++ Programming
    Replies: 16
    Last Post: 10-08-2009, 05:29 PM
  2. Advancing day by day until it matches a second date
    By nhubred in forum C++ Programming
    Replies: 1
    Last Post: 05-30-2009, 08:55 AM
  3. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  4. Boom, Headoshot!!
    By mrafcho001 in forum A Brief History of Cprogramming.com
    Replies: 50
    Last Post: 07-21-2005, 08:28 PM