[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C macro for date



On Wed, 14 Apr 1999, Erez Doron wrote:

>HI
>
>does anyone know on how to make a C program print it's compile
>date and time (without writing the date string by hand ever compile) ?
>
>I ask it for gcc BorlandC and djgpp

There is also __FILE__ that evaluates to the source being compiled (full
pathname: beware)

Erez, imho obtain an ANSI C draft spec or book. I have one (by Waite
Group's, Nabayoti Barkakati (sp ?), about 120 pp, all of ANSI C from
1989-90 or so).

Peter