14 lines
317 B
C
14 lines
317 B
C
#include "notify.h"
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
int main(int argc, char *argv[]) {
|
|
if(argc!=2) {
|
|
fprintf(stderr, "usage: %s <message>\n", argv[0]);
|
|
exit(1);
|
|
}
|
|
notify_init_early();
|
|
notify_init();
|
|
int notify_res;
|
|
notify_res = send_alarm(argv[1]);
|
|
printf("notify_res returned %d\n", notify_res);
|
|
}
|