diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad7df1c --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.vscode/ + +*.o +*.out + +profile \ No newline at end of file diff --git a/.vscode/configurationCache.log b/.vscode/configurationCache.log deleted file mode 100644 index 15ab425..0000000 --- a/.vscode/configurationCache.log +++ /dev/null @@ -1 +0,0 @@ -{"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 deleted file mode 100644 index 4f53cdc..0000000 --- a/.vscode/dryrun.log +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 4fef2f3..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "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 deleted file mode 100644 index c5d4f78..0000000 --- a/.vscode/targets.log +++ /dev/null @@ -1,254 +0,0 @@ -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 - +#define MAX_STRING_SIZE 50 + struct person { - char *name; + char name[MAX_STRING_SIZE]; + char email[MAX_STRING_SIZE]; + char job[MAX_STRING_SIZE]; int age; }; int main(int argc, char **argv) { struct person *project = malloc(sizeof(struct person)); - project->name = malloc(sizeof(char) * 20); strcpy(project->name, "Project_TL"); + strcpy(project->job, "Student"); + strcpy(project->email, "me@projecttl.net"); project->age = 18; - printf("Hello! I'm %s, I'm %d years old. Nice to meet you!\n", project->name, project->age); + puts("Current Profile:"); + printf("\tname: %s\n", project->name); + printf("\tage: %d\n", project->age); + printf("\tjob: %s\n", project->job); + printf("\temail: %s\n", project->email); free(project); diff --git a/main.o b/main.o deleted file mode 100644 index 27e4492..0000000 Binary files a/main.o and /dev/null differ diff --git a/profile.out b/profile.out deleted file mode 100755 index 25573bc..0000000 Binary files a/profile.out and /dev/null differ