"Fossies" - the Fresh Open Source Software Archive

Member "pidentd-3.0.19/src/gen_osinfo.c" (20 Jan 1999, 720 Bytes) of package /linux/misc/old/pidentd-3.0.19.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "gen_osinfo.c" see the Fossies "Dox" file reference documentation.

    1 /*
    2 ** gen_osinfo.c - Generate the compile-time OS information.
    3 **
    4 ** Copyright (c) 1997 Peter Eriksson <pen@lysator.liu.se>
    5 **
    6 ** This program is free software; you can redistribute it and/or
    7 ** modify it as you wish - as long as you don't claim that you wrote
    8 ** it.
    9 **
   10 ** This program is distributed in the hope that it will be useful,
   11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   13 */
   14 
   15 #include "config.h"
   16 
   17 #include <stdio.h>
   18 #include <stdlib.h>
   19 
   20 #include "pidentd.h"
   21 
   22 
   23 int debug = 0;
   24 
   25 int
   26 main(int argc,
   27      char *argv[])
   28 {
   29     char buf[256];
   30     
   31     printf("char osinfo_build[] = \"%s\";\n", osinfo_get(buf));
   32     return EXIT_SUCCESS;
   33 }
   34