b5fd3969bd64229ba162baa910803bf65f776cdc
[AROS.git] / arch / m68k-amiga / battclock / resetbattclock.c
blobb5fd3969bd64229ba162baa910803bf65f776cdc
1 /*
2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
4 Desc: ResetBattClock()
5 Lang: english
6 */
7 #include "battclock_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <proto/battclock.h>
14 AROS_LH0(void, ResetBattClock,
16 /* SYNOPSIS */
17 /* void */
19 /* LOCATION */
20 struct BattClockBase*, BattClockBase, 1, Battclock)
22 /* FUNCTION
23 Reset the system battery-backed-up clock. This will reset the clock
24 back to 0 seconds (or midnight, 1st Jan 1978).
26 INPUTS
27 None.
29 RESULT
30 The clock will be reset.
32 NOTES
33 This function may do nothing when the battery backed up clock either
34 doesn't exist, or may not be writable by the operating system.
36 EXAMPLE
38 BUGS
40 SEE ALSO
41 ReadBattClock(), WriteBattClock()
43 INTERNALS
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
49 resetbattclock(BattClockBase);
50 WriteBattClock(0);
52 AROS_LIBFUNC_EXIT
53 } /* ResetBattClock */