I have problem with SetTime in Ansi C!!!

I use “time.h” I cann’t set time!
Help me!

TELDAT <mpiotrowski@teldat.com.pl> wrote:

I use “time.h” I cann’t set time!
Help me!

Posted more detailed answer in different conference – but is a lot
more helpful if you give us more information about what goes wrong…

– does it fail at compile time?
– does it fail at runtime?
– what function did you call?
– what parameters did you pass?
– when it fails, what is the return value? the errno value?

At a (wild) guess, you are failing at runtime, not checking the return
value or errno, but are not running as root. root access is required to
set the time.

-David