Changeset 195 for libmpc/branches/r2d/mpcenc/pipeopen.c
- Timestamp:
- 12/29/06 15:21:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/mpcenc/pipeopen.c
r46 r195 17 17 */ 18 18 19 //#define DEBUG2 19 #include <mpc/mpc_types.h> 20 #include <ctype.h> 20 21 21 #include "mppdec.h" 22 #include <ctype.h> 22 #include "mpcenc.h" 23 23 24 24 … … 69 69 strcpy ( p, executable_filename ); 70 70 #ifdef DEBUG2 71 stderr_printf ("Test for file »%s«\n", filename );71 stderr_printf ("Test for file %s \n", filename ); 72 72 #endif 73 73 fp = fopen ( filename, "rb" ); … … 78 78 fp = POPEN_READ_BINARY_OPEN ( cmdline ); 79 79 #ifdef DEBUG2 80 stderr_printf ("Executed »%s«\n", cmdline );80 stderr_printf ("Executed %s\n", cmdline ); 81 81 #endif 82 82 } … … 114 114 115 115 /* 116 * Executes command line given by »command«.116 * Executes command line given by command. 117 117 * The command must be found in some predefined paths or in the ${PATH} aka %PATH% 118 * The char »#«in command is replaced by the contents119 * of »filename«. Special characters are escaped.118 * The char # in command is replaced by the contents 119 * of filename. Special characters are escaped. 120 120 */ 121 121 … … 129 129 "/usr/bin:/usr/local/bin:/opt/mpp:."; 130 130 #endif 131 char command_line [4096]; // » -o - bar.pac«132 char executable_filename [4096]; // »foo.exe«131 char command_line [4096]; // -o - bar.pac 132 char executable_filename [4096]; // foo.exe 133 133 char* p; 134 134 const char* q;
Note: See TracChangeset
for help on using the changeset viewer.