On Sun, 02 Nov 2003 14:24:12 -0500, "Yann Laviolette"
<ya*************@gnome.org> wrote in comp.lang.c:
Hi!
I look for a function like the Windows function getdate(&d); and
gettime(&t); to have the date and the time. Also I look for a function
like spawnl to call another program. These function should work with
Linux.
Can somebody help me?
Thanks a lot!
Yann
Standard C, the topic here, provides the function time() prototyped in
<time.h> for getting the current system date and time. It also
provides the standard library function system() prototyped in
<stdlib.h> which may be able to launch external programs. Look them
up in your compiler's library documentation, man pages, or help files.
None of the functions you mentioned are part of standard C, so they
are all off-topic here. If you want Linux specific answers, ask in a
Linux programming group such as news:comp.os.linux.development.apps.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
ftp://snurse-l.org/pub/acllc-c++/faq