Important: The information in this document is obsolete and should not be used for new development.
InitUtil
System software uses theInitUtilfunction 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
TheInitUtilfunction copies the contents of parameter RAM into 20 bytes of low memory and calls the Date, Time, and Measurement Utilities'ReadDateTimefunction 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
InitUtilis called,InitUtilreturns 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 theInitUtilfunction 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 theReadDateTimefunction, see the chapter "Date, Time, and Measurement Utilities" in this book.