// A Badass PasteBin

// A Badass PasteBin

int main(int argc, char *argv[])
{
    char string[100], *temp[100];
    char *strings[100];
    get_stdin(string, 100);
    int sort_type = 0, order_op = 0, fold = 0, dir = 0, inline_search = 0, inlines;
    setup_ops(argc, argv, &sort_type, &order_op, &dir, &fold, &inline_search);
    int nlines = getlines(string, strings); //lines get stored in strings
    int values[100];
    int times = extract_numbers_from_args(argc, argv, values);
    if(inline_search)
    {
        int index = 0;
        while(index < times)
        {
            inlines = splitlines(temp, strings[values[index]]);
            writelines(temp, inlines);
        }
    }
    else
    {
        my_qsorts((void **)strings, nlines, sort_type, order_op, fold, dir, (sort_type ? numcmp : my_strcmp));
        writelines(strings, nlines);
    }
    return 0;
}
ID: XP8W
URL:
Expires: Never
Created: Mon, 12 Mar 2018 00:04:20 -0700
(3 months ago)

Share this Paste

Use the following URLs to access this Paste

You do know how to copy and paste, right?

×

Edit

×

Encrypt

×

Delete this Paste

Hit the delete button below to make this FN Paste disappear forever.

×
© Copyright 2018 fnPaste.com
// Web Hosting provided by Krellen