-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbanner.h
More file actions
27 lines (23 loc) · 741 Bytes
/
banner.h
File metadata and controls
27 lines (23 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
////////////////////////////////////////////////////////////////////////////////
void banner_ok(void) {
printf(TITLE "\n"
" " COPYR "\n"
" from Command-Line Pack "
VERSION
"\n\n",
(sizeof(off_t) > 4 && sizeof(off_t) > sizeof(size_t)) ? ", large file support" : ""
);
}
void banner_error(void) {
printf("Configuration error\n");
exit(1);
}
static void banner(void) {
((sizeof(off_t) >= sizeof(size_t)) ? banner_ok : banner_error)();
//
// If we've displayed the banner, we'll also want to warn that this is a
// command-line app when we exit
//
atexit(commandlinewarning);
}
////////////////////////////////////////////////////////////////////////////////