Davy wrote:
> Hi all,
>
> I am reading a book "Computer Systems A progammer's Perspective"(
> http://csapp.cs.cmu.edu/public/students.html ).
> The book have a chapter talking about Memory and have a sample program(
> http://csapp.cs.cmu.edu/public/mountain.tar ).
> I want to use it in VC6.0 and windows.
>
> But the program use a <sys/times.h> times()
> (http://www.die.net/doc/linux/man/man2/times.2.html). It seems cannot
> be compiled in VC6.0.
nor in Standard C, the topic of this NG. It's labeled as a posix
function in my man page.
> Is there any counterpart function in Windows?
Of course, if you invoke one of various varieties of posix emulation.
Both Windows-specific details and posix are outside the scope of c.l.c.
How about trying Google et al, or, if you wish to make the examples
even less portable, look up your Windows API documentatation.
>
> BTW, where to discuss Linux program port to Windows?
on forums specific to your chosen compiler, should you think it worth
the hassle.