Ignore:
Timestamp:
Jan 3, 2005, 4:29:46 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • renamed a few functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/src/main.c

    r383 r387  
    1818int main(int argc, char *argv[])
    1919{
     20    struct image *img;
    2021    char *result;
    2122
     
    2627    }
    2728
    28     result = slashdot_decode(argv[1]);
     29    img = image_load(argv[1]);
     30    if(!img)
     31    {
     32        fprintf(stderr, "cannot load %s\n", argv[1]);
     33        return -1;
     34    }
     35
     36    result = decode_slashdot(img);
    2937    if(!result)
     38    {
     39        fprintf(stderr, "sorry, decoding failed\n");
    3040        return -1;
     41    }
    3142
    3243    printf("%s\n", result);
Note: See TracChangeset for help on using the changeset viewer.