version 1.1.1.1, 2012/02/21 22:14:23
|
version 1.1.1.2, 2013/07/22 11:54:42
|
Line 37
|
Line 37
|
#include "../include/win32/libnet.h" |
#include "../include/win32/libnet.h" |
#endif |
#endif |
|
|
static const char banner[] = | #ifndef STDOUT_FILENO |
"libnet version "VERSION" (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com>\n"; | #define STDOUT_FILENO 1 |
| #endif |
|
|
|
static const char banner[] = "libnet version "VERSION""; |
|
|
void |
void |
__libnet_print_vers(void) |
__libnet_print_vers(void) |
{ |
{ |
/* |
/* |
* We don't check for error cos we really don't care. |
* We don't check for error cos we really don't care. |
*/ |
*/ |
#if defined (__WIN32__) | #if defined (__WIN32__) |
fprintf(stdout,"%s",banner); | fprintf(stdout, "%s", banner); |
#else | #else |
write(STDOUT_FILENO, banner, sizeof(banner) - 1); | (void)write(STDOUT_FILENO, banner, sizeof(banner) - 1); |
#endif | #endif |
} |
} |
|
|
|
const char * |
|
libnet_version(void) |
|
{ |
|
return (banner); |
|
} |
|
|
|
/* EOF */ |