Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/PROUG/LIKE

Name: Anonymous 2009-05-06 2:50

/PROG/ has decided to worktogether to make a telnet based multiplayerp

Name: Anonymous 2009-05-08 15:15

I fixed you're program

/*
Copyright (c) 2009 >>42

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
/* FUCK THE ESTABLISHMENT, YEAH, STICK IT TO THE MAN !! */
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <getopt.h>

static void
print_help()
{
    printf("Usage: %s [OPTION]\n", program_invocation_short_name);
    puts("OPTION can be:");
    puts("  --help     Display help.");
    puts("  --version  Display version information.");
}

static void
print_version()
{
    puts("This is " PACKAGE_NAME " version " PACKAGE_VERSION ".");
}

int
main(int argc, char* argv[])
{
    for (;;) {
        static const struct long_options[] = {
            { "help", 0, NULL, 'h' },
            { "version", 0, NULL, 'v' },
            { 0, 0, 0, 0 }
        };
        int option_index = 0;
        int c = getopt_long(argc, argv, "hv", long_options, &option_index);
        if (c == -1)
            break;

        switch (c) {
        case 'h':
            print_help();
            return EXIT_SUCCESS;
        case 'v':
            print_version();
            return EXIT_SUCCESS;
        default:
            print_help();
            return EXIT_FAILURE;
        }
    }

    if (optind < argc) {
        print_help();
        return EXIT_FAILURE;
    }

    return EXIT_SUCCESS;
}

Name: Anonymous 2009-05-08 15:18

>>44
You fucked you miner indentation.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List