diff --git a/.vscode/configurationCache.log b/.vscode/configurationCache.log new file mode 100644 index 0000000..15ab425 --- /dev/null +++ b/.vscode/configurationCache.log @@ -0,0 +1 @@ +{"buildTargets":["clean","clear","main.o","profile.out"],"launchTargets":["/Users/projecttl/Sources/devproje>profile.out()"],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":["/Users/projecttl/Sources/devproje"],"compilerArgs":["-c","-o","main.o","main.c"]},"fileIndex":[["/Users/projecttl/Sources/devproje/main.c",{"uri":{"$mid":1,"fsPath":"/Users/projecttl/Sources/devproje/main.c","external":"file:///Users/projecttl/Sources/devproje/main.c","path":"/Users/projecttl/Sources/devproje/main.c","scheme":"file"},"configuration":{"defines":[],"includePath":[],"forcedInclude":[],"compilerPath":"/usr/local/bin/gcc","compilerArgs":["-c","-o","main.o","main.c"],"windowsSdkVersion":""},"compileCommand":{"command":"gcc -c -o main.o main.c","directory":"/Users/projecttl/Sources/devproje","file":"/Users/projecttl/Sources/devproje/main.c"}}]]}} \ No newline at end of file diff --git a/.vscode/dryrun.log b/.vscode/dryrun.log new file mode 100644 index 0000000..4f53cdc --- /dev/null +++ b/.vscode/dryrun.log @@ -0,0 +1,5 @@ +make --dry-run --keep-going --print-directory +make: Entering directory `/Users/projecttl/Sources/devproje' +make: `profile.out' is up to date. +make: Leaving directory `/Users/projecttl/Sources/devproje' + diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4fef2f3 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "makefile.extensionOutputFolder": "./.vscode", + "files.associations": { + "stdio.h": "c", + "typeinfo": "c" + } +} \ No newline at end of file diff --git a/.vscode/targets.log b/.vscode/targets.log new file mode 100644 index 0000000..c5d4f78 --- /dev/null +++ b/.vscode/targets.log @@ -0,0 +1,254 @@ +make all --print-data-base --no-builtin-variables --no-builtin-rules --question +# GNU Make 3.81 +# Copyright (C) 2006 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. +# There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +# This program built for i386-apple-darwin11.3.0 + +make: *** No rule to make target `all'. Stop. + + +# Make data base, printed on Fri May 20 10:21:23 2022 + +# Variables + +# automatic +/dev/null || echo /Developer)/Makefiles +# environment +VSCODE_CODE_CACHE_PATH = /Users/projecttl/Library/Application Support/Code/CachedData/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5 +# environment +LOGNAME = projecttl +# environment +APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = 1 +# environment +ZSH = /Users/projecttl/.oh-my-zsh +# environment +VSCODE_HANDLES_UNCAUGHT_ERRORS = true +# automatic +^D = $(patsubst %/,%,$(dir $^)) +# makefile (from `Makefile', line 2) +obj = main.o +# environment +XPC_FLAGS = 0x0 +# default +MAKE = $(MAKE_COMMAND) +# default +MAKECMDGOALS := all +# environment +SHLVL = 1 +# default +MAKE_VERSION := 3.81 +# environment +USER = projecttl +# makefile +.DEFAULT_GOAL := profile.out +# environment +LESS = -R +# automatic +%D = $(patsubst %/,%,$(dir $%)) +# default +MAKE_COMMAND := /Library/Developer/CommandLineTools/usr/bin/make +# default +.VARIABLES := +# environment +TMPDIR = /var/folders/00/21zt7rs96kvf241qdyjgx1mr0000gn/T/ +# automatic +*F = $(notdir $*) +# environment +VSCODE_IPC_HOOK = /Users/projecttl/Library/Application Support/Code/1.67.2-main.sock +# makefile +MAKEFLAGS = Rrqp +# environment +MFLAGS = -Rrqp +# automatic +*D = $(patsubst %/,%,$(dir $*)) +# environment +XPC_SERVICE_NAME = application.com.microsoft.VSCode.8229336.8229342 +# automatic ++D = $(patsubst %/,%,$(dir $+)) +# automatic ++F = $(notdir $+) +# makefile (from `Makefile', line 3) +target = profile.out +# environment +__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0 +# environment +COMMAND_MODE = unix2003 +# default +MAKEFILES := +# automatic + -#include -#include -struct Person { - char name[20]; - int age; +struct person { + char *name; + int age; }; int main(int argc, char **argv) { - struct Person *dev = malloc(sizeof(struct Person)); + struct person *project = malloc(sizeof(struct person)); + project->name = malloc(sizeof(char) * 20); - strcpy(dev->name, "Project_TL"); - dev->age = 17; // 한국 만 나이 + strcpy(project->name, "Project_TL"); + project->age = 18; - printf("Hello! I'm %d years old %s Nice to meet you!\n", dev->age, dev->name); - free(dev); + printf("Hello! I'm %s, I'm %d years old. Nice to meet you!\n", project->name, project->age); + + free(project); - return 0; -} + return 0; +} \ No newline at end of file diff --git a/main.o b/main.o new file mode 100644 index 0000000..27e4492 Binary files /dev/null and b/main.o differ diff --git a/profile.out b/profile.out new file mode 100755 index 0000000..25573bc Binary files /dev/null and b/profile.out differ