ftp.nice.ch/pub/next/tools/system/power.N.bs.tar.gz#/power/getpwr.c

This is getpwr.c in view mode; [Download] [Up]

/* getpwr.c
 *
 * Usage: getpwr
 *
 * returns exit code 0/1 if power-on time is enabled/disabled and 
 * prints the currently set power-on time on stdout
 *
 */

#include <sys/types.h>
#include <stdio.h>

int 	get_nvram_power_on_alarm();
int     get_nvram_power_on_alarm_enabled();

main(int argc, char *argv[])

{

	fprintf ( stdout, "%li\n", get_nvram_power_on_alarm());
	
	if (get_nvram_power_on_alarm_enabled())
		return (0);
	else
		return (1);

}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.