s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
hostname.c
Go to the documentation of this file.
1#include <unistd.h>
2#include "buffer.h"
3#include "exit.h"
4
5char host[256];
6
7int main()
8{
9 host[0] = 0; /* sigh */
10 gethostname(host,sizeof(host));
11 host[sizeof(host) - 1] = 0;
12 buffer_puts(buffer_1small,host);
13 buffer_puts(buffer_1small,"\n");
14 buffer_flush(buffer_1small);
15 _exit(0);
16}
void _exit()
char host[256]
Definition: hostname.c:5
int main()
Definition: hostname.c:7