For submission
This commit is contained in:
		
							
								
								
									
										10
									
								
								Assignment9/.idea/runConfigurations/Test_All.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Assignment9/.idea/runConfigurations/Test_All.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| <component name="ProjectRunConfigurationManager"> | ||||
|   <configuration default="false" name="Test All" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="Assignment9" TARGET_NAME="Assignment9" CONFIG_NAME="Debug" RUN_TARGET_PROJECT_NAME="Assignment9" RUN_TARGET_NAME="Assignment9"> | ||||
|     <method v="2"> | ||||
|       <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> | ||||
|       <option name="RunConfigurationTask" enabled="false" run_configuration_name="Test1" run_configuration_type="CMakeRunConfiguration" /> | ||||
|       <option name="RunConfigurationTask" enabled="true" run_configuration_name="Test3" run_configuration_type="CMakeRunConfiguration" /> | ||||
|       <option name="RunConfigurationTask" enabled="true" run_configuration_name="Test4" run_configuration_type="CMakeRunConfiguration" /> | ||||
|     </method> | ||||
|   </configuration> | ||||
| </component> | ||||
| @@ -41,10 +41,12 @@ int main(int argc, char *argv[]) { | ||||
| 		} | ||||
| 		printf("Chunk size is:%d\n", chunks[i]->length); | ||||
| 	} | ||||
| 	char new_path[PATH_MAX]; | ||||
| 	getcwd(new_path, sizeof(new_path)); | ||||
| 	strcat(new_path, "/output.png"); | ||||
| 	write_png_chunks(new_path, chunks); | ||||
| 	// Uncomment to not overwrite original file | ||||
| 	//char new_path[PATH_MAX]; | ||||
| 	//getcwd(new_path, sizeof(new_path)); | ||||
| 	//strcat(new_path, "/output.png"); | ||||
| 	//write_png_chunks(new_path, chunks); | ||||
| 	write_png_chunks(path, chunks); | ||||
| 	destroy_chunks(chunks); | ||||
| 	return EXIT_SUCCESS; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user