source: pwntcha/trunk/src/main.c @ 382

Last change on this file since 382 was 382, checked in by Sam Hocevar, 15 years ago
  • proper headers.
  • Property svn:keywords set to Id
File size: 733 bytes
Line 
1/*
2 * main.c: main function
3 * $Id: main.c 382 2005-01-03 10:43:31Z sam $
4 *
5 * Copyright: (c) 2004 Sam Hocevar <sam@zoy.org>
6 *   This program is free software; you can redistribute it and/or
7 *   modify it under the terms of the Do What The Fuck You Want To
8 *   Public License as published by Banlu Kemiyatorn. See
9 *   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
10 */
11
12#include <stdio.h>
13#include <stdint.h>
14#include <stdlib.h>
15
16#include "config.h"
17#include "common.h"
18
19int main(int argc, char *argv[])
20{
21    char *result;
22
23    if(argc != 2)
24    {
25        fprintf(stderr, "usage: %s <image>\n", argv[0]);
26        return -1;
27    }
28
29    result = slashdot_decode(argv[1]);
30    if(!result)
31        return -1;
32
33    printf("%s\n", result);
34
35    return 0;
36}
37
Note: See TracBrowser for help on using the repository browser.