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!

Did you try checking the return value from whatever function you
called to set the time, and did you try checking the errno value?
If so, what was the errno value?

My first guess would be that errno is EPERM – it requires root
perms to set the time, and you weren’t running as root. But without
further information, like what the particular symptoms of your
failure were (was it a compile failure, runtime failure, etc) it
is VERY hard to answer this question.

-David