10main (
int argc,
char **argv)
16 fprintf (stderr,
"Usage: gdtopng filename.gd filename.png\n");
19 in =
fopen (argv[1],
"rb");
22 fprintf (stderr,
"Input file does not exist!\n");
29 fprintf (stderr,
"Input is not in GD format!\n");
35 fprintf (stderr,
"Output file cannot be written to!\n");
fprintf($stream, string $format, mixed ... $values)
fopen(string $filename, string $mode, bool $use_include_path=false, $context=null)
void gdImagePng(gdImagePtr im, FILE *out)
gdImagePtr gdImageCreateFromGd(FILE *in)
void gdImageDestroy(gdImagePtr im)
exit(string|int $status=0)