{"action":"created","comment":{"url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/comments/30472540","id":30472540,"diff_hunk":"@@ -0,0 +1,94 @@\n+#include \"myecho.h\"\n+#include \"myenv.h\"\n+#include \"isset.h\"\n+#include \"myprocess.h\"\n+/*\n+    #include <readline/readline.h>\n+    #include <readline/history.h>\n+*/\n+\n+#define ARGC 3\n+\n+#include <stdlib.h>\n+\n+int main(int argc, char* argv[], char* envp[]){\n+\n+    /* ------------- AUFGABE 1 ------------- */\n+    /* Erste, nicht so schöne Variante für echo */\n+    char* myArray[ARGC] = {\"fancyWord\", \"anotherFancyWord\", \"thirdFancyString\"};\n+    myecho(ARGC, &myArray);\n+\n+    /* Zweite, schönere Variante für echo */\n+    myechoAlt(ARGC, \"string\", \"stringsSoundNice\", \"wohooILoveStrings!\");\n+\n+    /* Umgebungsvariablen ausgeben */\n+    myenv(envp);\n+\n+\n+    /* ------------- AUFGABE 2 ------------- */\n+    /* Überprüfen, ob Umgebungsvariablen gesetzt */\n+    int isMyVarSet = isset(\"HOME\", argc);\n+    printf(\"isset returned %d.\\n\\n\", isMyVarSet);\n+\n+    /* Namen und Wert der Umgebungsvariablen ausgeben lassen */\n+    isMyVarSet = isset(\"HOME\", argc, \"-v\");\n+    printf(\"isset returned %d\\n\\n\", isMyVarSet);\n+\n+\n+    /* ------------- AUFGABE 3 ------------- */\n+    /* Prozess starten, pid ausgeben lassen*/\n+    pid_t myPid = fork();\n+    printf(\"%d\\n\\n\", (int)myPid);\n+\n+    myProcess(\"/usr/bin/gedit\", argv);\n+\n+    /* Aufgabe 4 hat nicht so richtig geklappt */\n+\n+    /* folgendes wurde unternommen:\n+        error: readline/readline.h could not be resolved\n+        Lösung: Mit Terminal installieren\n+        sudo apt-get install libreadline-dev","path":"main.c","position":50,"original_position":50,"commit_id":"bc265eba90d98a887a25d85d2df677162c3df77a","original_commit_id":"bc265eba90d98a887a25d85d2df677162c3df77a","user":{"login":"daniel-k","id":224128,"avatar_url":"https://avatars.githubusercontent.com/u/224128?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-k","html_url":"https://github.com/daniel-k","followers_url":"https://api.github.com/users/daniel-k/followers","following_url":"https://api.github.com/users/daniel-k/following{/other_user}","gists_url":"https://api.github.com/users/daniel-k/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-k/subscriptions","organizations_url":"https://api.github.com/users/daniel-k/orgs","repos_url":"https://api.github.com/users/daniel-k/repos","events_url":"https://api.github.com/users/daniel-k/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-k/received_events","type":"User","site_admin":false},"body":"Hat das gereicht? Beim Kompilieren muss noch die readline-Library dazugelinkt werden. Z.B.\r\n\r\n```bash\r\ngcc -o code code.c -lreadline\r\n```","created_at":"2015-05-17T17:37:12Z","updated_at":"2015-05-17T17:37:12Z","html_url":"https://github.com/RWTH-OS/gi4_uebung01/pull/12#discussion_r30472540","pull_request_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/comments/30472540"},"html":{"href":"https://github.com/RWTH-OS/gi4_uebung01/pull/12#discussion_r30472540"},"pull_request":{"href":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/12","id":33399321,"html_url":"https://github.com/RWTH-OS/gi4_uebung01/pull/12","diff_url":"https://github.com/RWTH-OS/gi4_uebung01/pull/12.diff","patch_url":"https://github.com/RWTH-OS/gi4_uebung01/pull/12.patch","issue_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/issues/12","number":12,"state":"open","locked":false,"title":"Lösungsvorschlag Übung 1","user":{"login":"tangboshi","id":11892419,"avatar_url":"https://avatars.githubusercontent.com/u/11892419?v=3","gravatar_id":"","url":"https://api.github.com/users/tangboshi","html_url":"https://github.com/tangboshi","followers_url":"https://api.github.com/users/tangboshi/followers","following_url":"https://api.github.com/users/tangboshi/following{/other_user}","gists_url":"https://api.github.com/users/tangboshi/gists{/gist_id}","starred_url":"https://api.github.com/users/tangboshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangboshi/subscriptions","organizations_url":"https://api.github.com/users/tangboshi/orgs","repos_url":"https://api.github.com/users/tangboshi/repos","events_url":"https://api.github.com/users/tangboshi/events{/privacy}","received_events_url":"https://api.github.com/users/tangboshi/received_events","type":"User","site_admin":false},"body":"Lösungsvorschlag von Alexander Pastor & Sebastian Kaster","created_at":"2015-04-15T21:39:49Z","updated_at":"2015-05-17T17:37:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1f3fcdc0e754e413771bf907feba24d8ab2a2cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/12/commits","review_comments_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/12/comments","review_comment_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/issues/12/comments","statuses_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/statuses/bc265eba90d98a887a25d85d2df677162c3df77a","head":{"label":"tangboshi:master","ref":"master","sha":"bc265eba90d98a887a25d85d2df677162c3df77a","user":{"login":"tangboshi","id":11892419,"avatar_url":"https://avatars.githubusercontent.com/u/11892419?v=3","gravatar_id":"","url":"https://api.github.com/users/tangboshi","html_url":"https://github.com/tangboshi","followers_url":"https://api.github.com/users/tangboshi/followers","following_url":"https://api.github.com/users/tangboshi/following{/other_user}","gists_url":"https://api.github.com/users/tangboshi/gists{/gist_id}","starred_url":"https://api.github.com/users/tangboshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangboshi/subscriptions","organizations_url":"https://api.github.com/users/tangboshi/orgs","repos_url":"https://api.github.com/users/tangboshi/repos","events_url":"https://api.github.com/users/tangboshi/events{/privacy}","received_events_url":"https://api.github.com/users/tangboshi/received_events","type":"User","site_admin":false},"repo":{"id":34018089,"name":"gi4_uebung01","full_name":"tangboshi/gi4_uebung01","owner":{"login":"tangboshi","id":11892419,"avatar_url":"https://avatars.githubusercontent.com/u/11892419?v=3","gravatar_id":"","url":"https://api.github.com/users/tangboshi","html_url":"https://github.com/tangboshi","followers_url":"https://api.github.com/users/tangboshi/followers","following_url":"https://api.github.com/users/tangboshi/following{/other_user}","gists_url":"https://api.github.com/users/tangboshi/gists{/gist_id}","starred_url":"https://api.github.com/users/tangboshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangboshi/subscriptions","organizations_url":"https://api.github.com/users/tangboshi/orgs","repos_url":"https://api.github.com/users/tangboshi/repos","events_url":"https://api.github.com/users/tangboshi/events{/privacy}","received_events_url":"https://api.github.com/users/tangboshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tangboshi/gi4_uebung01","description":"GI4 - Übung 1","fork":true,"url":"https://api.github.com/repos/tangboshi/gi4_uebung01","forks_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/forks","keys_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/teams","hooks_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/hooks","issue_events_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/issues/events{/number}","events_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/events","assignees_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/assignees{/user}","branches_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/branches{/branch}","tags_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/tags","blobs_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/git/refs{/sha}","trees_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/statuses/{sha}","languages_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/languages","stargazers_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/stargazers","contributors_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/contributors","subscribers_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/subscribers","subscription_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/subscription","commits_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/commits{/sha}","git_commits_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/git/commits{/sha}","comments_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/comments{/number}","issue_comment_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/issues/comments{/number}","contents_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/contents/{+path}","compare_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/merges","archive_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/downloads","issues_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/issues{/number}","pulls_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/pulls{/number}","milestones_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/milestones{/number}","notifications_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/labels{/name}","releases_url":"https://api.github.com/repos/tangboshi/gi4_uebung01/releases{/id}","created_at":"2015-04-15T20:54:00Z","updated_at":"2015-04-15T21:35:41Z","pushed_at":"2015-04-15T21:35:41Z","git_url":"git://github.com/tangboshi/gi4_uebung01.git","ssh_url":"git@github.com:tangboshi/gi4_uebung01.git","clone_url":"https://github.com/tangboshi/gi4_uebung01.git","svn_url":"https://github.com/tangboshi/gi4_uebung01","homepage":"http://www.acs.eonerc.rwth-aachen.de/cms/E-ON-ERC-ACS/Studium/Lehrveranstaltungen/~fyrr/Grundgebiete-der-Informatik/","size":119,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RWTH-OS:master","ref":"master","sha":"86294c5fd3c49a6b4a0075094138d0de28edf19b","user":{"login":"RWTH-OS","id":6057191,"avatar_url":"https://avatars.githubusercontent.com/u/6057191?v=3","gravatar_id":"","url":"https://api.github.com/users/RWTH-OS","html_url":"https://github.com/RWTH-OS","followers_url":"https://api.github.com/users/RWTH-OS/followers","following_url":"https://api.github.com/users/RWTH-OS/following{/other_user}","gists_url":"https://api.github.com/users/RWTH-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RWTH-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RWTH-OS/subscriptions","organizations_url":"https://api.github.com/users/RWTH-OS/orgs","repos_url":"https://api.github.com/users/RWTH-OS/repos","events_url":"https://api.github.com/users/RWTH-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RWTH-OS/received_events","type":"Organization","site_admin":false},"repo":{"id":32733750,"name":"gi4_uebung01","full_name":"RWTH-OS/gi4_uebung01","owner":{"login":"RWTH-OS","id":6057191,"avatar_url":"https://avatars.githubusercontent.com/u/6057191?v=3","gravatar_id":"","url":"https://api.github.com/users/RWTH-OS","html_url":"https://github.com/RWTH-OS","followers_url":"https://api.github.com/users/RWTH-OS/followers","following_url":"https://api.github.com/users/RWTH-OS/following{/other_user}","gists_url":"https://api.github.com/users/RWTH-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RWTH-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RWTH-OS/subscriptions","organizations_url":"https://api.github.com/users/RWTH-OS/orgs","repos_url":"https://api.github.com/users/RWTH-OS/repos","events_url":"https://api.github.com/users/RWTH-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RWTH-OS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RWTH-OS/gi4_uebung01","description":"GI4 - Übung 1","fork":false,"url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01","forks_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/forks","keys_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/teams","hooks_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/hooks","issue_events_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/issues/events{/number}","events_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/events","assignees_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/assignees{/user}","branches_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/branches{/branch}","tags_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/tags","blobs_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/git/refs{/sha}","trees_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/statuses/{sha}","languages_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/languages","stargazers_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/stargazers","contributors_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/contributors","subscribers_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/subscribers","subscription_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/subscription","commits_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/commits{/sha}","git_commits_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/git/commits{/sha}","comments_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/comments{/number}","issue_comment_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/issues/comments{/number}","contents_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/contents/{+path}","compare_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/merges","archive_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/downloads","issues_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/issues{/number}","pulls_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls{/number}","milestones_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/milestones{/number}","notifications_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/labels{/name}","releases_url":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/releases{/id}","created_at":"2015-03-23T13:27:40Z","updated_at":"2015-04-25T06:40:22Z","pushed_at":"2015-04-25T06:40:21Z","git_url":"git://github.com/RWTH-OS/gi4_uebung01.git","ssh_url":"git@github.com:RWTH-OS/gi4_uebung01.git","clone_url":"https://github.com/RWTH-OS/gi4_uebung01.git","svn_url":"https://github.com/RWTH-OS/gi4_uebung01","homepage":"http://www.acs.eonerc.rwth-aachen.de/cms/E-ON-ERC-ACS/Studium/Lehrveranstaltungen/~fyrr/Grundgebiete-der-Informatik/","size":306,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":15,"forks":36,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/12"},"html":{"href":"https://github.com/RWTH-OS/gi4_uebung01/pull/12"},"issue":{"href":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/issues/12"},"comments":{"href":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/RWTH-OS/gi4_uebung01/statuses/bc265eba90d98a887a25d85d2df677162c3df77a"}}}}