| @@ -0,0 +1,16 @@ | ||
| # CMAKE generated file: DO NOT EDIT! | ||
| # Generated by "Unix Makefiles" Generator, CMake Version 3.6 | ||
|
|
||
| # Relative path conversion top directories. | ||
| set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef") | ||
| set(CMAKE_RELATIVE_PATH_TOP_BINARY "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug") | ||
|
|
||
| # Force unix paths in dependencies. | ||
| set(CMAKE_FORCE_UNIX_PATHS 1) | ||
|
|
||
|
|
||
| # The C and CXX include file regular expressions for this directory. | ||
| set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") | ||
| set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") | ||
| set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) | ||
| set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) |
| @@ -0,0 +1,52 @@ | ||
| # CMAKE generated file: DO NOT EDIT! | ||
| # Generated by "Unix Makefiles" Generator, CMake Version 3.6 | ||
|
|
||
| # The generator used is: | ||
| set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") | ||
|
|
||
| # The top level Makefile was generated from the following files: | ||
| set(CMAKE_MAKEFILE_DEPENDS | ||
| "CMakeCache.txt" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/CMakeCInformation.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/CMakeCXXInformation.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/CMakeCommonLanguageInclude.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/CMakeFindCodeBlocks.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/CMakeGenericSystem.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/CMakeLanguageInformation.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/CMakeSystemSpecificInformation.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/CMakeSystemSpecificInitialize.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Compiler/AppleClang-C.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Compiler/AppleClang-CXX.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Compiler/Clang.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Compiler/GNU.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Platform/Darwin-AppleClang-C.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Platform/Darwin-AppleClang-CXX.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Platform/Darwin-Clang-C.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Platform/Darwin-Clang-CXX.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Platform/Darwin-Clang.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Platform/Darwin-Initialize.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Platform/Darwin.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/Platform/UnixPaths.cmake" | ||
| "/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.6/Modules/ProcessorCount.cmake" | ||
| "../CMakeLists.txt" | ||
| "CMakeFiles/3.6.3/CMakeCCompiler.cmake" | ||
| "CMakeFiles/3.6.3/CMakeCXXCompiler.cmake" | ||
| "CMakeFiles/3.6.3/CMakeSystem.cmake" | ||
| ) | ||
|
|
||
| # The corresponding makefile is: | ||
| set(CMAKE_MAKEFILE_OUTPUTS | ||
| "Makefile" | ||
| "CMakeFiles/cmake.check_cache" | ||
| ) | ||
|
|
||
| # Byproducts of CMake generate step: | ||
| set(CMAKE_MAKEFILE_PRODUCTS | ||
| "CMakeFiles/CMakeDirectoryInformation.cmake" | ||
| ) | ||
|
|
||
| # Dependency information for all targets: | ||
| set(CMAKE_DEPEND_INFO_FILES | ||
| "CMakeFiles/codechef.dir/DependInfo.cmake" | ||
| ) |
| @@ -0,0 +1,108 @@ | ||
| # CMAKE generated file: DO NOT EDIT! | ||
| # Generated by "Unix Makefiles" Generator, CMake Version 3.6 | ||
|
|
||
| # Default target executed when no arguments are given to make. | ||
| default_target: all | ||
|
|
||
| .PHONY : default_target | ||
|
|
||
| # The main recursive all target | ||
| all: | ||
|
|
||
| .PHONY : all | ||
|
|
||
| # The main recursive preinstall target | ||
| preinstall: | ||
|
|
||
| .PHONY : preinstall | ||
|
|
||
| #============================================================================= | ||
| # Special targets provided by cmake. | ||
|
|
||
| # Disable implicit rules so canonical targets will work. | ||
| .SUFFIXES: | ||
|
|
||
|
|
||
| # Remove some rules from gmake that .SUFFIXES does not remove. | ||
| SUFFIXES = | ||
|
|
||
| .SUFFIXES: .hpux_make_needs_suffix_list | ||
|
|
||
|
|
||
| # Suppress display of executed commands. | ||
| $(VERBOSE).SILENT: | ||
|
|
||
|
|
||
| # A target that is always out of date. | ||
| cmake_force: | ||
|
|
||
| .PHONY : cmake_force | ||
|
|
||
| #============================================================================= | ||
| # Set environment variables for the build. | ||
|
|
||
| # The shell in which to execute make rules. | ||
| SHELL = /bin/sh | ||
|
|
||
| # The CMake executable. | ||
| CMAKE_COMMAND = /Applications/CLion.app/Contents/bin/cmake/bin/cmake | ||
|
|
||
| # The command to remove a file. | ||
| RM = /Applications/CLion.app/Contents/bin/cmake/bin/cmake -E remove -f | ||
|
|
||
| # Escaping for special characters. | ||
| EQUALS = = | ||
|
|
||
| # The top-level source directory on which CMake was run. | ||
| CMAKE_SOURCE_DIR = /nfs/2016/m/mhouser/Desktop/files-8.4/codechef | ||
|
|
||
| # The top-level build directory on which CMake was run. | ||
| CMAKE_BINARY_DIR = /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug | ||
|
|
||
| #============================================================================= | ||
| # Target rules for target CMakeFiles/codechef.dir | ||
|
|
||
| # All Build rule for target. | ||
| CMakeFiles/codechef.dir/all: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/depend | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/build | ||
| @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles --progress-num=1,2,3,4,5,6,7,8 "Built target codechef" | ||
| .PHONY : CMakeFiles/codechef.dir/all | ||
|
|
||
| # Include target in all. | ||
| all: CMakeFiles/codechef.dir/all | ||
|
|
||
| .PHONY : all | ||
|
|
||
| # Build rule for subdir invocation for target. | ||
| CMakeFiles/codechef.dir/rule: cmake_check_build_system | ||
| $(CMAKE_COMMAND) -E cmake_progress_start /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles 8 | ||
| $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/codechef.dir/all | ||
| $(CMAKE_COMMAND) -E cmake_progress_start /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles 0 | ||
| .PHONY : CMakeFiles/codechef.dir/rule | ||
|
|
||
| # Convenience name for target. | ||
| codechef: CMakeFiles/codechef.dir/rule | ||
|
|
||
| .PHONY : codechef | ||
|
|
||
| # clean rule for target. | ||
| CMakeFiles/codechef.dir/clean: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/clean | ||
| .PHONY : CMakeFiles/codechef.dir/clean | ||
|
|
||
| # clean rule for target. | ||
| clean: CMakeFiles/codechef.dir/clean | ||
|
|
||
| .PHONY : clean | ||
|
|
||
| #============================================================================= | ||
| # Special targets to cleanup operation of make. | ||
|
|
||
| # Special rule to run CMake to check the build system integrity. | ||
| # No rule that depends on this can have commands that come from listfiles | ||
| # because they might be regenerated. | ||
| cmake_check_build_system: | ||
| $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 | ||
| .PHONY : cmake_check_build_system | ||
|
|
| @@ -0,0 +1,3 @@ | ||
| /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/edit_cache.dir | ||
| /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/rebuild_cache.dir | ||
| /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/codechef.dir |
| @@ -0,0 +1 @@ | ||
| CMake: 3.6.3@/Applications/CLion.app/Contents/bin/cmake/bin/cmake |
| @@ -0,0 +1,4 @@ | ||
| /Applications/CLion.app/Contents/bin/cmake/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /nfs/2016/m/mhouser/Desktop/files-8.4/codechef | ||
| -- Configuring done | ||
| -- Generating done | ||
| -- Build files have been written to: /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug |
| @@ -0,0 +1 @@ | ||
| # This file is generated by cmake for dependency checking of the CMakeCache.txt file |
| @@ -0,0 +1,26 @@ | ||
| # The set of languages for which implicit dependencies are needed: | ||
| set(CMAKE_DEPENDS_LANGUAGES | ||
| "C" | ||
| ) | ||
| # The set of files for implicit dependencies of each language: | ||
| set(CMAKE_DEPENDS_CHECK_C | ||
| "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/aa.c" "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/codechef.dir/aa.c.o" | ||
| "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/bb.c" "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/codechef.dir/bb.c.o" | ||
| "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/dd.c" "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/codechef.dir/dd.c.o" | ||
| "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/ee.c" "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/codechef.dir/ee.c.o" | ||
| "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/ff.c" "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/codechef.dir/ff.c.o" | ||
| "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/gg.c" "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/codechef.dir/gg.c.o" | ||
| "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/read_args_short.c" "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/codechef.dir/read_args_short.c.o" | ||
| ) | ||
| set(CMAKE_C_COMPILER_ID "AppleClang") | ||
|
|
||
| # The include file search paths: | ||
| set(CMAKE_C_TARGET_INCLUDE_PATH | ||
| ) | ||
|
|
||
| # Targets to which this target links. | ||
| set(CMAKE_TARGET_LINKED_INFO_FILES | ||
| ) | ||
|
|
||
| # Fortran module output directory. | ||
| set(CMAKE_Fortran_TARGET_MODULE_DIR "") |
| @@ -0,0 +1,16 @@ | ||
| file(REMOVE_RECURSE | ||
| "CMakeFiles/codechef.dir/aa.c.o" | ||
| "CMakeFiles/codechef.dir/bb.c.o" | ||
| "CMakeFiles/codechef.dir/dd.c.o" | ||
| "CMakeFiles/codechef.dir/ee.c.o" | ||
| "CMakeFiles/codechef.dir/ff.c.o" | ||
| "CMakeFiles/codechef.dir/gg.c.o" | ||
| "CMakeFiles/codechef.dir/read_args_short.c.o" | ||
| "codechef.pdb" | ||
| "codechef" | ||
| ) | ||
|
|
||
| # Per-language clean rules from dependency scanning. | ||
| foreach(lang C) | ||
| include(CMakeFiles/codechef.dir/cmake_clean_${lang}.cmake OPTIONAL) | ||
| endforeach() |
| @@ -0,0 +1,2 @@ | ||
| # Empty dependencies file for codechef. | ||
| # This may be replaced when dependencies are built. |
| @@ -0,0 +1,10 @@ | ||
| # CMAKE generated file: DO NOT EDIT! | ||
| # Generated by "Unix Makefiles" Generator, CMake Version 3.6 | ||
|
|
||
| # compile C with /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc | ||
| C_FLAGS = -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.11 | ||
|
|
||
| C_DEFINES = | ||
|
|
||
| C_INCLUDES = | ||
|
|
| @@ -0,0 +1 @@ | ||
| /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.11 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/codechef.dir/aa.c.o CMakeFiles/codechef.dir/bb.c.o CMakeFiles/codechef.dir/dd.c.o CMakeFiles/codechef.dir/ee.c.o CMakeFiles/codechef.dir/ff.c.o CMakeFiles/codechef.dir/gg.c.o CMakeFiles/codechef.dir/read_args_short.c.o -o codechef |
| @@ -0,0 +1,9 @@ | ||
| CMAKE_PROGRESS_1 = 1 | ||
| CMAKE_PROGRESS_2 = 2 | ||
| CMAKE_PROGRESS_3 = 3 | ||
| CMAKE_PROGRESS_4 = 4 | ||
| CMAKE_PROGRESS_5 = 5 | ||
| CMAKE_PROGRESS_6 = 6 | ||
| CMAKE_PROGRESS_7 = 7 | ||
| CMAKE_PROGRESS_8 = 8 | ||
|
|
| @@ -0,0 +1,34 @@ | ||
|
|
||
| const char features[] = {"\n" | ||
| "C_FEATURE:" | ||
| #if ((__clang_major__ * 100) + __clang_minor__) >= 400 | ||
| "1" | ||
| #else | ||
| "0" | ||
| #endif | ||
| "c_function_prototypes\n" | ||
| "C_FEATURE:" | ||
| #if ((__clang_major__ * 100) + __clang_minor__) >= 400 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L | ||
| "1" | ||
| #else | ||
| "0" | ||
| #endif | ||
| "c_restrict\n" | ||
| "C_FEATURE:" | ||
| #if ((__clang_major__ * 100) + __clang_minor__) >= 400 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L | ||
| "1" | ||
| #else | ||
| "0" | ||
| #endif | ||
| "c_static_assert\n" | ||
| "C_FEATURE:" | ||
| #if ((__clang_major__ * 100) + __clang_minor__) >= 400 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L | ||
| "1" | ||
| #else | ||
| "0" | ||
| #endif | ||
| "c_variadic_macros\n" | ||
|
|
||
| }; | ||
|
|
||
| int main(int argc, char** argv) { (void)argv; return features[argc]; } |
| @@ -0,0 +1 @@ | ||
| 8 |
| @@ -0,0 +1,358 @@ | ||
| # CMAKE generated file: DO NOT EDIT! | ||
| # Generated by "Unix Makefiles" Generator, CMake Version 3.6 | ||
|
|
||
| # Default target executed when no arguments are given to make. | ||
| default_target: all | ||
|
|
||
| .PHONY : default_target | ||
|
|
||
| # Allow only one "make -f Makefile2" at a time, but pass parallelism. | ||
| .NOTPARALLEL: | ||
|
|
||
|
|
||
| #============================================================================= | ||
| # Special targets provided by cmake. | ||
|
|
||
| # Disable implicit rules so canonical targets will work. | ||
| .SUFFIXES: | ||
|
|
||
|
|
||
| # Remove some rules from gmake that .SUFFIXES does not remove. | ||
| SUFFIXES = | ||
|
|
||
| .SUFFIXES: .hpux_make_needs_suffix_list | ||
|
|
||
|
|
||
| # Suppress display of executed commands. | ||
| $(VERBOSE).SILENT: | ||
|
|
||
|
|
||
| # A target that is always out of date. | ||
| cmake_force: | ||
|
|
||
| .PHONY : cmake_force | ||
|
|
||
| #============================================================================= | ||
| # Set environment variables for the build. | ||
|
|
||
| # The shell in which to execute make rules. | ||
| SHELL = /bin/sh | ||
|
|
||
| # The CMake executable. | ||
| CMAKE_COMMAND = /Applications/CLion.app/Contents/bin/cmake/bin/cmake | ||
|
|
||
| # The command to remove a file. | ||
| RM = /Applications/CLion.app/Contents/bin/cmake/bin/cmake -E remove -f | ||
|
|
||
| # Escaping for special characters. | ||
| EQUALS = = | ||
|
|
||
| # The top-level source directory on which CMake was run. | ||
| CMAKE_SOURCE_DIR = /nfs/2016/m/mhouser/Desktop/files-8.4/codechef | ||
|
|
||
| # The top-level build directory on which CMake was run. | ||
| CMAKE_BINARY_DIR = /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug | ||
|
|
||
| #============================================================================= | ||
| # Targets provided globally by CMake. | ||
|
|
||
| # Special rule for the target edit_cache | ||
| edit_cache: | ||
| @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." | ||
| /Applications/CLion.app/Contents/bin/cmake/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. | ||
| .PHONY : edit_cache | ||
|
|
||
| # Special rule for the target edit_cache | ||
| edit_cache/fast: edit_cache | ||
|
|
||
| .PHONY : edit_cache/fast | ||
|
|
||
| # Special rule for the target rebuild_cache | ||
| rebuild_cache: | ||
| @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." | ||
| /Applications/CLion.app/Contents/bin/cmake/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) | ||
| .PHONY : rebuild_cache | ||
|
|
||
| # Special rule for the target rebuild_cache | ||
| rebuild_cache/fast: rebuild_cache | ||
|
|
||
| .PHONY : rebuild_cache/fast | ||
|
|
||
| # The main all target | ||
| all: cmake_check_build_system | ||
| $(CMAKE_COMMAND) -E cmake_progress_start /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles/progress.marks | ||
| $(MAKE) -f CMakeFiles/Makefile2 all | ||
| $(CMAKE_COMMAND) -E cmake_progress_start /nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/CMakeFiles 0 | ||
| .PHONY : all | ||
|
|
||
| # The main clean target | ||
| clean: | ||
| $(MAKE) -f CMakeFiles/Makefile2 clean | ||
| .PHONY : clean | ||
|
|
||
| # The main clean target | ||
| clean/fast: clean | ||
|
|
||
| .PHONY : clean/fast | ||
|
|
||
| # Prepare targets for installation. | ||
| preinstall: all | ||
| $(MAKE) -f CMakeFiles/Makefile2 preinstall | ||
| .PHONY : preinstall | ||
|
|
||
| # Prepare targets for installation. | ||
| preinstall/fast: | ||
| $(MAKE) -f CMakeFiles/Makefile2 preinstall | ||
| .PHONY : preinstall/fast | ||
|
|
||
| # clear depends | ||
| depend: | ||
| $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 | ||
| .PHONY : depend | ||
|
|
||
| #============================================================================= | ||
| # Target rules for targets named codechef | ||
|
|
||
| # Build rule for target. | ||
| codechef: cmake_check_build_system | ||
| $(MAKE) -f CMakeFiles/Makefile2 codechef | ||
| .PHONY : codechef | ||
|
|
||
| # fast build rule for target. | ||
| codechef/fast: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/build | ||
| .PHONY : codechef/fast | ||
|
|
||
| aa.o: aa.c.o | ||
|
|
||
| .PHONY : aa.o | ||
|
|
||
| # target to build an object file | ||
| aa.c.o: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/aa.c.o | ||
| .PHONY : aa.c.o | ||
|
|
||
| aa.i: aa.c.i | ||
|
|
||
| .PHONY : aa.i | ||
|
|
||
| # target to preprocess a source file | ||
| aa.c.i: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/aa.c.i | ||
| .PHONY : aa.c.i | ||
|
|
||
| aa.s: aa.c.s | ||
|
|
||
| .PHONY : aa.s | ||
|
|
||
| # target to generate assembly for a file | ||
| aa.c.s: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/aa.c.s | ||
| .PHONY : aa.c.s | ||
|
|
||
| bb.o: bb.c.o | ||
|
|
||
| .PHONY : bb.o | ||
|
|
||
| # target to build an object file | ||
| bb.c.o: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/bb.c.o | ||
| .PHONY : bb.c.o | ||
|
|
||
| bb.i: bb.c.i | ||
|
|
||
| .PHONY : bb.i | ||
|
|
||
| # target to preprocess a source file | ||
| bb.c.i: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/bb.c.i | ||
| .PHONY : bb.c.i | ||
|
|
||
| bb.s: bb.c.s | ||
|
|
||
| .PHONY : bb.s | ||
|
|
||
| # target to generate assembly for a file | ||
| bb.c.s: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/bb.c.s | ||
| .PHONY : bb.c.s | ||
|
|
||
| dd.o: dd.c.o | ||
|
|
||
| .PHONY : dd.o | ||
|
|
||
| # target to build an object file | ||
| dd.c.o: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/dd.c.o | ||
| .PHONY : dd.c.o | ||
|
|
||
| dd.i: dd.c.i | ||
|
|
||
| .PHONY : dd.i | ||
|
|
||
| # target to preprocess a source file | ||
| dd.c.i: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/dd.c.i | ||
| .PHONY : dd.c.i | ||
|
|
||
| dd.s: dd.c.s | ||
|
|
||
| .PHONY : dd.s | ||
|
|
||
| # target to generate assembly for a file | ||
| dd.c.s: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/dd.c.s | ||
| .PHONY : dd.c.s | ||
|
|
||
| ee.o: ee.c.o | ||
|
|
||
| .PHONY : ee.o | ||
|
|
||
| # target to build an object file | ||
| ee.c.o: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/ee.c.o | ||
| .PHONY : ee.c.o | ||
|
|
||
| ee.i: ee.c.i | ||
|
|
||
| .PHONY : ee.i | ||
|
|
||
| # target to preprocess a source file | ||
| ee.c.i: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/ee.c.i | ||
| .PHONY : ee.c.i | ||
|
|
||
| ee.s: ee.c.s | ||
|
|
||
| .PHONY : ee.s | ||
|
|
||
| # target to generate assembly for a file | ||
| ee.c.s: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/ee.c.s | ||
| .PHONY : ee.c.s | ||
|
|
||
| ff.o: ff.c.o | ||
|
|
||
| .PHONY : ff.o | ||
|
|
||
| # target to build an object file | ||
| ff.c.o: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/ff.c.o | ||
| .PHONY : ff.c.o | ||
|
|
||
| ff.i: ff.c.i | ||
|
|
||
| .PHONY : ff.i | ||
|
|
||
| # target to preprocess a source file | ||
| ff.c.i: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/ff.c.i | ||
| .PHONY : ff.c.i | ||
|
|
||
| ff.s: ff.c.s | ||
|
|
||
| .PHONY : ff.s | ||
|
|
||
| # target to generate assembly for a file | ||
| ff.c.s: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/ff.c.s | ||
| .PHONY : ff.c.s | ||
|
|
||
| gg.o: gg.c.o | ||
|
|
||
| .PHONY : gg.o | ||
|
|
||
| # target to build an object file | ||
| gg.c.o: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/gg.c.o | ||
| .PHONY : gg.c.o | ||
|
|
||
| gg.i: gg.c.i | ||
|
|
||
| .PHONY : gg.i | ||
|
|
||
| # target to preprocess a source file | ||
| gg.c.i: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/gg.c.i | ||
| .PHONY : gg.c.i | ||
|
|
||
| gg.s: gg.c.s | ||
|
|
||
| .PHONY : gg.s | ||
|
|
||
| # target to generate assembly for a file | ||
| gg.c.s: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/gg.c.s | ||
| .PHONY : gg.c.s | ||
|
|
||
| read_args_short.o: read_args_short.c.o | ||
|
|
||
| .PHONY : read_args_short.o | ||
|
|
||
| # target to build an object file | ||
| read_args_short.c.o: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/read_args_short.c.o | ||
| .PHONY : read_args_short.c.o | ||
|
|
||
| read_args_short.i: read_args_short.c.i | ||
|
|
||
| .PHONY : read_args_short.i | ||
|
|
||
| # target to preprocess a source file | ||
| read_args_short.c.i: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/read_args_short.c.i | ||
| .PHONY : read_args_short.c.i | ||
|
|
||
| read_args_short.s: read_args_short.c.s | ||
|
|
||
| .PHONY : read_args_short.s | ||
|
|
||
| # target to generate assembly for a file | ||
| read_args_short.c.s: | ||
| $(MAKE) -f CMakeFiles/codechef.dir/build.make CMakeFiles/codechef.dir/read_args_short.c.s | ||
| .PHONY : read_args_short.c.s | ||
|
|
||
| # Help Target | ||
| help: | ||
| @echo "The following are some of the valid targets for this Makefile:" | ||
| @echo "... all (the default if no target is provided)" | ||
| @echo "... clean" | ||
| @echo "... depend" | ||
| @echo "... edit_cache" | ||
| @echo "... rebuild_cache" | ||
| @echo "... codechef" | ||
| @echo "... aa.o" | ||
| @echo "... aa.i" | ||
| @echo "... aa.s" | ||
| @echo "... bb.o" | ||
| @echo "... bb.i" | ||
| @echo "... bb.s" | ||
| @echo "... dd.o" | ||
| @echo "... dd.i" | ||
| @echo "... dd.s" | ||
| @echo "... ee.o" | ||
| @echo "... ee.i" | ||
| @echo "... ee.s" | ||
| @echo "... ff.o" | ||
| @echo "... ff.i" | ||
| @echo "... ff.s" | ||
| @echo "... gg.o" | ||
| @echo "... gg.i" | ||
| @echo "... gg.s" | ||
| @echo "... read_args_short.o" | ||
| @echo "... read_args_short.i" | ||
| @echo "... read_args_short.s" | ||
| .PHONY : help | ||
|
|
||
|
|
||
|
|
||
| #============================================================================= | ||
| # Special targets to cleanup operation of make. | ||
|
|
||
| # Special rule to run CMake to check the build system integrity. | ||
| # No rule that depends on this can have commands that come from listfiles | ||
| # because they might be regenerated. | ||
| cmake_check_build_system: | ||
| $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 | ||
| .PHONY : cmake_check_build_system | ||
|
|
| @@ -0,0 +1,39 @@ | ||
| # Install script for directory: /nfs/2016/m/mhouser/Desktop/files-8.4/codechef | ||
|
|
||
| # Set the install prefix | ||
| if(NOT DEFINED CMAKE_INSTALL_PREFIX) | ||
| set(CMAKE_INSTALL_PREFIX "/usr/local") | ||
| endif() | ||
| string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") | ||
|
|
||
| # Set the install configuration name. | ||
| if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) | ||
| if(BUILD_TYPE) | ||
| string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" | ||
| CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") | ||
| else() | ||
| set(CMAKE_INSTALL_CONFIG_NAME "Debug") | ||
| endif() | ||
| message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") | ||
| endif() | ||
|
|
||
| # Set the component getting installed. | ||
| if(NOT CMAKE_INSTALL_COMPONENT) | ||
| if(COMPONENT) | ||
| message(STATUS "Install component: \"${COMPONENT}\"") | ||
| set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") | ||
| else() | ||
| set(CMAKE_INSTALL_COMPONENT) | ||
| endif() | ||
| endif() | ||
|
|
||
| if(CMAKE_INSTALL_COMPONENT) | ||
| set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") | ||
| else() | ||
| set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") | ||
| endif() | ||
|
|
||
| string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT | ||
| "${CMAKE_INSTALL_MANIFEST_FILES}") | ||
| file(WRITE "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" | ||
| "${CMAKE_INSTALL_MANIFEST_CONTENT}") |
| @@ -0,0 +1,108 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <CodeBlocks_project_file> | ||
| <FileVersion major="1" minor="6"/> | ||
| <Project> | ||
| <Option title="codechef"/> | ||
| <Option makefile_is_custom="1"/> | ||
| <Option compiler="gcc"/> | ||
| <Option virtualFolders="CMake Files\;"/> | ||
| <Build> | ||
| <Target title="all"> | ||
| <Option working_dir="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug"/> | ||
| <Option type="4"/> | ||
| <MakeCommands> | ||
| <Build command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 all"/> | ||
| <CompileFile command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 "$file""/> | ||
| <Clean command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 clean"/> | ||
| <DistClean command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 clean"/> | ||
| </MakeCommands> | ||
| </Target> | ||
| <Target title="edit_cache"> | ||
| <Option working_dir="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug"/> | ||
| <Option type="4"/> | ||
| <MakeCommands> | ||
| <Build command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 edit_cache"/> | ||
| <CompileFile command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 "$file""/> | ||
| <Clean command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 clean"/> | ||
| <DistClean command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 clean"/> | ||
| </MakeCommands> | ||
| </Target> | ||
| <Target title="rebuild_cache"> | ||
| <Option working_dir="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug"/> | ||
| <Option type="4"/> | ||
| <MakeCommands> | ||
| <Build command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 rebuild_cache"/> | ||
| <CompileFile command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 "$file""/> | ||
| <Clean command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 clean"/> | ||
| <DistClean command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 clean"/> | ||
| </MakeCommands> | ||
| </Target> | ||
| <Target title="codechef"> | ||
| <Option output="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/codechef" prefix_auto="0" extension_auto="0"/> | ||
| <Option working_dir="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug"/> | ||
| <Option object_output="./"/> | ||
| <Option type="1"/> | ||
| <Option compiler="gcc"/> | ||
| <Compiler> | ||
| <Add directory="/usr/local/include"/> | ||
| <Add directory="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include"/> | ||
| <Add directory="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"/> | ||
| <Add directory="/System/Library/Frameworks"/> | ||
| <Add directory="/Library/Frameworks"/> | ||
| <Add directory="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1"/> | ||
| </Compiler> | ||
| <MakeCommands> | ||
| <Build command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 codechef"/> | ||
| <CompileFile command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 "$file""/> | ||
| <Clean command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 clean"/> | ||
| <DistClean command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 clean"/> | ||
| </MakeCommands> | ||
| </Target> | ||
| <Target title="codechef/fast"> | ||
| <Option output="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/codechef" prefix_auto="0" extension_auto="0"/> | ||
| <Option working_dir="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug"/> | ||
| <Option object_output="./"/> | ||
| <Option type="1"/> | ||
| <Option compiler="gcc"/> | ||
| <Compiler> | ||
| <Add directory="/usr/local/include"/> | ||
| <Add directory="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include"/> | ||
| <Add directory="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"/> | ||
| <Add directory="/System/Library/Frameworks"/> | ||
| <Add directory="/Library/Frameworks"/> | ||
| <Add directory="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1"/> | ||
| </Compiler> | ||
| <MakeCommands> | ||
| <Build command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 codechef/fast"/> | ||
| <CompileFile command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 "$file""/> | ||
| <Clean command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 clean"/> | ||
| <DistClean command="/usr/bin/make -j4 -f "/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/cmake-build-debug/Makefile" VERBOSE=1 clean"/> | ||
| </MakeCommands> | ||
| </Target> | ||
| </Build> | ||
| <Unit filename="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/aa.c"> | ||
| <Option target="codechef"/> | ||
| </Unit> | ||
| <Unit filename="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/bb.c"> | ||
| <Option target="codechef"/> | ||
| </Unit> | ||
| <Unit filename="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/dd.c"> | ||
| <Option target="codechef"/> | ||
| </Unit> | ||
| <Unit filename="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/ee.c"> | ||
| <Option target="codechef"/> | ||
| </Unit> | ||
| <Unit filename="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/ff.c"> | ||
| <Option target="codechef"/> | ||
| </Unit> | ||
| <Unit filename="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/gg.c"> | ||
| <Option target="codechef"/> | ||
| </Unit> | ||
| <Unit filename="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/read_args_short.c"> | ||
| <Option target="codechef"/> | ||
| </Unit> | ||
| <Unit filename="/nfs/2016/m/mhouser/Desktop/files-8.4/codechef/CMakeLists.txt"> | ||
| <Option virtualFolder="CMake Files\"/> | ||
| </Unit> | ||
| </Project> | ||
| </CodeBlocks_project_file> |
| @@ -0,0 +1,34 @@ | ||
| #include <stdio.h> | ||
|
|
||
|
|
||
|
|
||
| void really_change_char(char *c) | ||
| { | ||
| char ***pnt = &c; | ||
| ***pnt = 'c'; | ||
| printf("%c", ***pnt); | ||
| //the_final_countdown(*pnt); | ||
| } | ||
|
|
||
| void change_char(char *c) | ||
| { | ||
| char **pnt = &c; | ||
| char ***finalpnt = &pnt; | ||
| **pnt = 'b'; | ||
| printf("%c", **pnt); | ||
| really_change_char(*finalpnt); | ||
| } | ||
|
|
||
| int main() { | ||
| int a = 'a'; | ||
| char *b = &a; | ||
| char **c = &b; | ||
| printf("%c", **c); | ||
|
|
||
| change_char(*c); | ||
| **c = 'd'; | ||
|
|
||
| printf("%c", a); | ||
|
|
||
| return 0; | ||
| } |
| @@ -0,0 +1,25 @@ | ||
| #include <stdio.h> | ||
|
|
||
| int change_num(int *c) | ||
| { | ||
| int val = *c; | ||
| int **pnt = &c; | ||
| val *= 2; | ||
| **pnt = 48; | ||
| return ((val * 2)); | ||
| } | ||
|
|
||
| int main(void) { | ||
|
|
||
| int a = 3; | ||
| int *b = &a; | ||
| int **c = &b; | ||
| *b = 6; | ||
| *b = 12; | ||
| **c = 24; | ||
| printf("%d", change_num(*c)); | ||
|
|
||
| printf("%d", a); | ||
|
|
||
| return 0; | ||
| } |
| @@ -0,0 +1,64 @@ | ||
| #include <unistd.h> | ||
| #include <stdlib.h> | ||
|
|
||
| void ft_putchar(char c) | ||
| { | ||
| write(1, &c, 1); | ||
| } | ||
|
|
||
| int main() { | ||
| char *str; | ||
| int i = 0; | ||
| char string1[5] = "hello"; | ||
| char *string2; | ||
|
|
||
| while (string1[i]) | ||
| { | ||
| i++; | ||
| } | ||
|
|
||
| string2 = (char*)calloc(i, sizeof(char) * i); // Just for the string | ||
|
|
||
| //str = &string2[0]; -> the other way now! | ||
| str = string2; | ||
| i = 0; | ||
| //int myArray[10] = { 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 }; -> THIS DOES | ||
| //str = {'w','e','l','l','d','\0'}; -> THIS DOESN'T WORK :( | ||
| while(i <= 5) | ||
| { | ||
| char c; | ||
| if (i == 0) | ||
| c = 'w'; | ||
| else if (i == 1) | ||
| c = 'o'; | ||
| else if (i == 2) | ||
| c = 'r'; | ||
| else if (i == 3) | ||
| c = 'l'; | ||
| else if (i == 4) | ||
| c = 'd'; | ||
| else | ||
| c = 0; | ||
| str[i] = c; | ||
| i++; | ||
| } | ||
|
|
||
| //str = malloc(sizeof(char) * i); -- NO NEED! | ||
| i = 0; | ||
| while(string1[i]) | ||
| { | ||
| ft_putchar(string1[i]); | ||
| i++; | ||
| } | ||
| ft_putchar('\n'); | ||
| i = 0; | ||
| while(string2[i]) | ||
| { | ||
| ft_putchar(str[i]); | ||
| i++; | ||
| } | ||
| ft_putchar('\n'); | ||
| ft_putchar((i + '0')); | ||
|
|
||
| return 0; | ||
| } |
| @@ -0,0 +1,64 @@ | ||
| #include <unistd.h> | ||
| #include <stdlib.h> | ||
|
|
||
| void ft_putchar(char c) | ||
| { | ||
| write(1, &c, 1); | ||
| } | ||
| /* | ||
| void ft_putstr(*str) | ||
| { | ||
| char *pnt; | ||
| *pnt = *str; | ||
| while(*str++) | ||
| ft_putchar(*pnt++); | ||
| } | ||
| */ | ||
|
|
||
| void ft_putnum(int num) | ||
| { | ||
| while (num) | ||
| { | ||
| ft_putchar((num % 10) + '0'); | ||
| num -= (num % 10); | ||
| num /= 10; | ||
| } | ||
| } | ||
|
|
||
| int ft_str_cnt_put(char *c) | ||
| { | ||
| int strlen; | ||
|
|
||
| strlen = -1; | ||
| ft_putchar(*c); | ||
| while (*c++) | ||
| { | ||
| ft_putchar(*c); | ||
| strlen++; | ||
| } | ||
| ft_putchar(':'); | ||
| ft_putchar('\t'); | ||
|
|
||
| return ++strlen; | ||
| } | ||
|
|
||
| int main(int argc, char **argv) | ||
| { | ||
| char *str; | ||
| int i; | ||
|
|
||
| i = 1; | ||
| //char string1[6] = "hello\0"; | ||
| while(argv[i]) | ||
| { | ||
| ft_putnum(ft_str_cnt_put(argv[i++])); | ||
| ft_putchar('\n'); | ||
| } | ||
| //string1[6] = '\0'; -> FUCK NO!! -> Save lines save lives... | ||
| //char *str; | ||
| //str = string1; | ||
|
|
||
|
|
||
| return 0; | ||
| } |
| @@ -0,0 +1,23 @@ | ||
| /* ************************************************************************** */ | ||
| /* */ | ||
| /* ::: :::::::: */ | ||
| /* main.c :+: :+: :+: */ | ||
| /* +:+ +:+ +:+ */ | ||
| /* By: mhouser <marvin@42.fr> +#+ +:+ +#+ */ | ||
| /* +#+#+#+#+#+ +#+ */ | ||
| /* Created: 2017/02/01 10:54:18 by mhouser #+# #+# */ | ||
| /* Updated: 2017/02/01 10:56:42 by mhouser ### ########.fr */ | ||
| /* */ | ||
| /* ************************************************************************** */ | ||
| #include <stdio.h> | ||
|
|
||
| int main(int argc, char **argv) | ||
| { | ||
| int i; | ||
|
|
||
| i = 1; | ||
| while(--argc > 0) | ||
| printf("%s", argv[i++]); | ||
|
|
||
| return (0); | ||
| } |