SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

/****************************************************************************** * This file is Copyright 1993 by Philip G. Richards. All Rights Reserved. * See the file README that came with this distribution for permissions on * code usage, copying, and distribution. It comes with absolutely no warranty. * email: <pgr@prg.ox.ac.uk>
******************************************************************************/

/* ---INFOBEGIN--- * DO NOT DELETE THIS COMMENT BLOCK!!! COMMAND readme none "read the README; set readme mode to never, once, or always"

  • ---INFOEND--- */

extern int readme_max;

#include "client.h"
#include "main.h"
#include "table.h"

int
lreadme_main(int argc, char constargv, char **envp) {

if (argc < 2)
{

        if (!notconnected)
            util_print_readme();
        else
        {
            ffprintf(STDERR, "?not connected\n");
            return 1;
        }

}
else
{

        if (strcmp(argv[1], "never") == 0 || strcmp(argv[1], "0") == 0)
            readme_max = 0;
        else if (strcmp(argv[1], "once") == 0 || strcmp(argv[1], "1") == 0)
            readme_max = 1;
        else if (strcmp(argv[1], "always") == 0 || strcmp(argv[1], "2") == 0)
            readme_max = -1;
        else
        {
            ffprintf(STDERR, "?usage: readme [never|once|always]|[0-2]\n");
            return 1;
        }

}

return 0;
}


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.