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

Last change on this file since 383 was 383, checked in by Sam Hocevar, 15 years ago
  • Put font in share/
  • Fixed file headers
  • Property svn:keywords set to Id
File size: 713 bytes
Line 
1/*
2 * main.c: main function
3 * $Id: main.c 383 2005-01-03 10:58:23Z 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 <stdlib.h>
14
15#include "config.h"
16#include "common.h"
17
18int main(int argc, char *argv[])
19{
20    char *result;
21
22    if(argc != 2)
23    {
24        fprintf(stderr, "usage: %s <image>\n", argv[0]);
25        return -1;
26    }
27
28    result = slashdot_decode(argv[1]);
29    if(!result)
30        return -1;
31
32    printf("%s\n", result);
33
34    return 0;
35}
36
Note: See TracBrowser for help on using the repository browser.