/external/libpng/contrib/gregbook/ |
wpng.c | 163 char *inname = NULL, outname[256]; local 364 /* make outname from inname */ 368 strcpy(outname, inname); 369 strcpy(outname+len, ".png"); 372 strncpy(outname, inname, len); 373 strcpy(outname+len, ".png"); 375 /* check if outname already exists; if not, open */ 376 if ((wpng_info.outfile = fopen(outname, "rb")) != NULL) { 378 outname); 381 } else if (!(wpng_info.outfile = fopen(outname, "wb"))) [all...] |
/external/zlib/examples/ |
gun.c | 539 inname is NULL or an empty string, read from stdin. If outname is NULL or 542 outname. 547 local int gunzip(z_stream *strm, char *inname, char *outname, int test) 566 else if (outname == NULL || *outname == 0) { 567 outname = "-"; 571 outfile = open(outname, O_CREAT | O_TRUNC | O_WRONLY, 0666); 574 fprintf(stderr, "gun cannot create %s\n", outname); 590 copymeta(inname, outname); /* copy attributes */ 598 if (outfile > 2) unlink(outname); 633 char *outname; local [all...] |
/bootable/recovery/applypatch/ |
applypatch.c | 697 char* outname; local 800 outname = NULL; 816 outname = (char*)malloc(strlen(target_filename) + 10); 817 strcpy(outname, target_filename); 818 strcat(outname, ".patch"); 820 output = open(outname, O_WRONLY | O_CREAT | O_TRUNC); 823 outname, strerror(errno)); 862 if (outname != NULL) { 863 unlink(outname); 887 if (chmod(outname, source_to_use->st.st_mode) != 0) [all...] |
/external/libpng/ |
pngtest.c | 96 int test_one_file PNGARG((PNG_CONST char *inname, PNG_CONST char *outname)); 687 test_one_file(PNG_CONST char *inname, PNG_CONST char *outname) 733 MultiByteToWideChar(CP_ACP, 0, outname, -1, path, MAX_PATH); 737 if ((fpout = fopen(outname, "wb")) == NULL) 740 fprintf(STDERR, "Could not open output file %s\n", outname); 802 fprintf(STDERR, "%s -> %s: libpng read error\n", inname, outname); 826 fprintf(STDERR, "%s -> %s: libpng write error\n", inname, outname); 1447 static PNG_CONST char *outname = "pngout\/png"; variable 1450 static PNG_CONST char *outname = "pngout.png"; variable [all...] |
/external/bison/src/ |
scan-skel.c | 847 char *outname = NULL; variable 981 if (outname) 983 free (outname); variable 986 outname = xstrdup (file_name); 987 skel_out = xfopen (outname, "w"); 1014 QPUTS (outname); 1051 if (outname) 1053 free (outname); [all...] |