C standard libraries

Jonathan M Davis jmdavisProg at gmx.com
Mon Jul 1 11:09:10 PDT 2013


On Monday, July 01, 2013 18:32:30 CJS wrote:
> Is there some header/module that includes declaration for all C
> standard libraries?
> 
> I'm wondering both in general for future reference, and for the
> specific case of wanting to time a function and not knowing what
> in D--even after looking through the docs--would do something
> equivalent to clock and CLOCKS_PER_SEC in the C standard library
> time.h.

If you want to time a function, checkout std.datetime.StopWatch: 
http://dlang.org/phobos/std_datetime.html#StopWatch

As for C standard library functions in general, as Adam pointed out, they're 
in the in the core.stdc.* modules.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list