m_nalarm

This function queues an alarm for any time in the future and gets information on the most current pending alarm of a given type. m_nalarm is called by the application and is run with the application's context and stack.

Note that applications developed according to the System Manager API1 documentation used m_alarm to queue alarms. m_alarm calls will automatically map to m_nalarm with System Manager API2 in order to take advantage of the fields for year, month, and date.

Alarms are managed as a list and sorted in increasing order of time of alarm. The array of alarm structures NEWALARM specifies the time, sound, and repeat factor for each alarm.