mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-03 13:49:36 +00:00
28 lines
296 B
C
28 lines
296 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#include "log.h"
|
||
|
|
||
|
static void
|
||
|
init()
|
||
|
{
|
||
|
log_open();
|
||
|
}
|
||
|
|
||
|
static void
|
||
|
finish()
|
||
|
{
|
||
|
log_close();
|
||
|
}
|
||
|
|
||
|
int
|
||
|
main(int argc, char **argv)
|
||
|
{
|
||
|
init();
|
||
|
|
||
|
// When we exit, we want to wrap up a few loose ends.
|
||
|
atexit(finish);
|
||
|
|
||
|
printf("Hello, world\n");
|
||
|
}
|