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

Last change on this file since 381 was 381, checked in by Sam Hocevar, 15 years ago
  • first pwntcha commit!
  • Property svn:keywords set to Id
File size: 384 bytes
Line 
1
2#include <stdio.h>
3#include <stdint.h>
4#include <stdlib.h>
5
6#include "config.h"
7#include "common.h"
8
9int main(int argc, char *argv[])
10{
11    char *result;
12
13    if(argc != 2)
14    {
15        fprintf(stderr, "usage: %s <image>\n", argv[0]);
16        return -1;
17    }
18
19    result = slashdot_decode(argv[1]);
20    if(!result)
21        return -1;
22
23    printf("%s\n", result);
24
25    return 0;
26}
27
Note: See TracBrowser for help on using the repository browser.