version 1.1.1.2, 2013/07/22 11:54:42
|
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 | |
|
|
#ifndef STDOUT_FILENO | static const char banner[] = "libnet version " LIBNET_VERSION ""; |
#define STDOUT_FILENO 1 | |
#endif | |
|
|
static const char banner[] = "libnet version "VERSION""; |
|
|
|
void |
|
__libnet_print_vers(void) |
|
{ |
|
/* |
|
* We don't check for error cos we really don't care. |
|
*/ |
|
#if defined (__WIN32__) |
|
fprintf(stdout, "%s", banner); |
|
#else |
|
(void)write(STDOUT_FILENO, banner, sizeof(banner) - 1); |
|
#endif |
|
} |
|
|
|
const char * |
const char * |
libnet_version(void) |
libnet_version(void) |
{ |
{ |
return (banner); |
return (banner); |
} |
} |
|
|
/* EOF */ | /** |
| * Local Variables: |
| * indent-tabs-mode: nil |
| * c-file-style: "stroustrup" |
| * End: |
| */ |