Important: The information in this document is obsolete and should not be used for new development.
InitUtil
System software uses theInitUtil
function at startup time to copy values from parameter RAM and date and time information into low memory. Your application should never need to use this function.
FUNCTION InitUtil: OSErr;DESCRIPTION
TheInitUtil
function copies the contents of parameter RAM into 20 bytes of low memory and calls the Date, Time, and Measurement Utilities'ReadDateTime
function to copy the date and time from the clock chip into a separate low-memory location.If the validity status in parameter RAM is not $A8 when
InitUtil
is called,InitUtil
returns a non-zero result code. In this case, the default values are read into the low-memory copy of parameter RAM; these values are then written to the clock chip.ASSEMBLY-LANGUAGE INFORMATION
The registers on exit for theInitUtil
function are
Registers on exit D0 Result code RESULT CODES
noErr 0 No error prInitErr -88 Validity status not $A8 SEE ALSO
For more information about theReadDateTime
function, see the chapter "Date, Time, and Measurement Utilities" in this book.