Greetings.
In article <>, Yann Laviolette
wrote:
> I look for a function like the Windows function getdate(&d); and
> gettime(&t); to have the date and the time.
Without more information on what exactly getdate() and gettime() are
supposed to do, I can only recommend the following:
#include <time.h>
time_t time(time_t *t);
(IIRC, even this isn't guaranteed to work, as C doesn't require that the
system have a clock.)
> Also I look for a function
> like spawnl to call another program.
"Call" in what way? The standard way is to use the system() function
defined in <stdlib.h>, though you may be looking for a POSIX-style fork()
exec(). The latter isn't standard C, but is widely supported on most Un*x
compilers, including those for Linux.
> These function should work with Linux.
The above will work on Linux, or for that matter on any other system with a
conformant C compiler.
If you want something more specific to Linux, you'll have to ask in a
newsgroup catering to that platform. Try a gcc newsgroup.
--
_
_V.-o Tristan Miller [en,(fr,de,ia)] >< Space is limited
/ |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <> In a haiku, so it's hard
(7_\\
http://www.nothingisreal.com/ >< To finish what you