version 1.1.1.1, 2012/02/21 22:14:23
|
version 1.1.1.3, 2023/09/27 11:11:38
|
Line 2
|
Line 2
|
* $Id$ |
* $Id$ |
* |
* |
* libnet |
* libnet |
* libnet_version.c - dummy version function to define version info | * libnet_version.c - version function to return version info |
* |
* |
* Copyright (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com> |
* Copyright (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com> |
* All rights reserved. |
* All rights reserved. |
Line 30
|
Line 30
|
* |
* |
*/ |
*/ |
|
|
#if (!(_WIN32) || (__CYGWIN__)) | #include "common.h" |
#include <unistd.h> | |
#include "../version.h" | |
#else | |
#include "../include/win32/libnet.h" | |
#endif | |
|
|
static const char banner[] = | static const char banner[] = "libnet version " LIBNET_VERSION ""; |
"libnet version "VERSION" (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com>\n"; | |
|
|
void | const char * |
__libnet_print_vers(void) | libnet_version(void) |
{ |
{ |
/* | return (banner); |
* We don't check for error cos we really don't care. | |
*/ | |
#if defined (__WIN32__) | |
fprintf(stdout,"%s",banner); | |
#else | |
write(STDOUT_FILENO, banner, sizeof(banner) - 1); | |
#endif | |
} |
} |
|
|
|
/** |
|
* Local Variables: |
|
* indent-tabs-mode: nil |
|
* c-file-style: "stroustrup" |
|
* End: |
|
*/ |