{"action":"created","comment":{"url":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/comments/83883908","pull_request_review_id":4691730,"id":83883908,"diff_hunk":"@@ -0,0 +1,109 @@\n+#include <stdlib.h>\n+#include <string.h>\n+#include <curses.h>\n+#include <unistd.h>\n+#include \"experiment.h\"\n+\n+char* concat(const char *s1, const char *s2){\n+    \n+    char *result = malloc(strlen(s1)+strlen(s2)+3);\n+    strcpy(result, s1);\n+    strcat(result, \" \");\n+    strcat(result, s2);\n+    strcat(result, \"\\n\");\n+    return result;\n+}\n+\n+void currPrint(FILE *f, double *points, int flag){\n+\tprintf(\"%d\\n\", flag);\n+\tif(flag == 0){\n+\t\tfor(int j = 0; j <= POINTS; j++){\n+\t\t\tfprintf(f,\"%.20f\\n\", points[j]);\n+\t\t}\n+\t}else{\n+\t\tfor(int j = POINTS; j >= 0; j = j - 1){\n+\t\t\tfprintf(f,\"%.20f\\n\", points[j]);\n+\t\t}\n+\t}\n+}\n+\n+void exchange(char *s1, char *s2){\n+\tchar *result = malloc(strlen(s1)+strlen(s2));\n+\tstrcpy(result, s1);\n+\tstrcpy(s1, s2);\n+\tstrcpy(s2, result);\n+}\n+\n+void message(ViSession *ins, ViStatus *stat, ViUInt32 *retC, char *mess){\n+\tprintf(\"%s: \", mess);\n+\t*stat = viWrite(*ins, mess, strlen(mess), retC);\n+\terrorNotifier(*stat);\n+}\n+\n+void readTr(ViSession *ins, ViStatus *stat, ViUInt32 *retC, FILE *conOut, ViBuf *buff){\t\t\t\t\t\t\t\t\t\t\t//<---- ToDo\n+\tmessage(ins, stat, retC, \"TRACe:DATA?\\n\");\n+\t*stat = viRead(*ins, buff, MAX_CNT, retC);\n+\terrorNotifier(*stat);\n+\t//printf(\"%s\\n\", buff);\n+\t//printf(\"%d\\n\", retC);\t\n+\t//fwrite(buff, sizeof(ViBuf), sizeof(ViBuf)*MAX_CNT, conOut);\n+\tfprintf(conOut, \"%s\\n\", buff);\n+}\n+\n+void mesure(ViSession *ins, ViStatus *stat, ViUInt32 *retC, FILE *conOut, ViBuf *buff){\t\t\t\t\t\t\t\t\t\t\t\t//<---- ToDo\n+\tmessage(ins, stat, retC, \"INIT:IMM\\n\");\n+\tsleep(6);\n+\tmessage(ins, stat, retC, \"SENS:DATA?\\n\");\n+\tsleep(3);\n+\tmessage(ins, stat, retC, \"SOUR:SWE:ABOR\\n\");\n+\treadTr(ins, stat, retC, conOut, buff); \t\t\t\t//<---- ToDo\n+}\n+\n+char **confSetUp(FILE *param, int len, ViSession *defRM, ViSession *ins, ViStatus *stat, ViUInt32 *retC){\n+\t\n+\tchar conStr[len], conVal[len], dontNeed[len];\n+\tchar **elem = malloc(3 * sizeof(char*));\n+\t\n+\tfor (int i =0 ; i < 3; ++i){\n+    \telem[i] = malloc(30 * sizeof(char));","path":"src/functons.c","position":68,"original_position":68,"commit_id":"d3cdb1178d4c42149a874856a1a8555f9ef1133d","original_commit_id":"d3cdb1178d4c42149a874856a1a8555f9ef1133d","user":{"login":"loyd","id":952180,"avatar_url":"https://avatars.githubusercontent.com/u/952180?v=3","gravatar_id":"","url":"https://api.github.com/users/loyd","html_url":"https://github.com/loyd","followers_url":"https://api.github.com/users/loyd/followers","following_url":"https://api.github.com/users/loyd/following{/other_user}","gists_url":"https://api.github.com/users/loyd/gists{/gist_id}","starred_url":"https://api.github.com/users/loyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loyd/subscriptions","organizations_url":"https://api.github.com/users/loyd/orgs","repos_url":"https://api.github.com/users/loyd/repos","events_url":"https://api.github.com/users/loyd/events{/privacy}","received_events_url":"https://api.github.com/users/loyd/received_events","type":"User","site_admin":false},"body":"magic const","created_at":"2016-10-18T15:39:03Z","updated_at":"2016-10-18T15:39:03Z","html_url":"https://github.com/memorydumB/Keithley_Eth/pull/1#discussion_r83883908","pull_request_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/comments/83883908"},"html":{"href":"https://github.com/memorydumB/Keithley_Eth/pull/1#discussion_r83883908"},"pull_request":{"href":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/1","id":89591167,"html_url":"https://github.com/memorydumB/Keithley_Eth/pull/1","diff_url":"https://github.com/memorydumB/Keithley_Eth/pull/1.diff","patch_url":"https://github.com/memorydumB/Keithley_Eth/pull/1.patch","issue_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/issues/1","number":1,"state":"open","locked":false,"title":"rework","user":{"login":"memorydumB","id":22431502,"avatar_url":"https://avatars.githubusercontent.com/u/22431502?v=3","gravatar_id":"","url":"https://api.github.com/users/memorydumB","html_url":"https://github.com/memorydumB","followers_url":"https://api.github.com/users/memorydumB/followers","following_url":"https://api.github.com/users/memorydumB/following{/other_user}","gists_url":"https://api.github.com/users/memorydumB/gists{/gist_id}","starred_url":"https://api.github.com/users/memorydumB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memorydumB/subscriptions","organizations_url":"https://api.github.com/users/memorydumB/orgs","repos_url":"https://api.github.com/users/memorydumB/repos","events_url":"https://api.github.com/users/memorydumB/events{/privacy}","received_events_url":"https://api.github.com/users/memorydumB/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-17T09:46:03Z","updated_at":"2016-10-18T15:39:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1299d2e08d3a36aa051cd301fa86b0c064bdd9be","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/1/commits","review_comments_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/1/comments","review_comment_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/issues/1/comments","statuses_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/statuses/d3cdb1178d4c42149a874856a1a8555f9ef1133d","head":{"label":"memorydumB:Branch_One","ref":"Branch_One","sha":"d3cdb1178d4c42149a874856a1a8555f9ef1133d","user":{"login":"memorydumB","id":22431502,"avatar_url":"https://avatars.githubusercontent.com/u/22431502?v=3","gravatar_id":"","url":"https://api.github.com/users/memorydumB","html_url":"https://github.com/memorydumB","followers_url":"https://api.github.com/users/memorydumB/followers","following_url":"https://api.github.com/users/memorydumB/following{/other_user}","gists_url":"https://api.github.com/users/memorydumB/gists{/gist_id}","starred_url":"https://api.github.com/users/memorydumB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memorydumB/subscriptions","organizations_url":"https://api.github.com/users/memorydumB/orgs","repos_url":"https://api.github.com/users/memorydumB/repos","events_url":"https://api.github.com/users/memorydumB/events{/privacy}","received_events_url":"https://api.github.com/users/memorydumB/received_events","type":"User","site_admin":false},"repo":{"id":70569616,"name":"Keithley_Eth","full_name":"memorydumB/Keithley_Eth","owner":{"login":"memorydumB","id":22431502,"avatar_url":"https://avatars.githubusercontent.com/u/22431502?v=3","gravatar_id":"","url":"https://api.github.com/users/memorydumB","html_url":"https://github.com/memorydumB","followers_url":"https://api.github.com/users/memorydumB/followers","following_url":"https://api.github.com/users/memorydumB/following{/other_user}","gists_url":"https://api.github.com/users/memorydumB/gists{/gist_id}","starred_url":"https://api.github.com/users/memorydumB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memorydumB/subscriptions","organizations_url":"https://api.github.com/users/memorydumB/orgs","repos_url":"https://api.github.com/users/memorydumB/repos","events_url":"https://api.github.com/users/memorydumB/events{/privacy}","received_events_url":"https://api.github.com/users/memorydumB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/memorydumB/Keithley_Eth","description":null,"fork":false,"url":"https://api.github.com/repos/memorydumB/Keithley_Eth","forks_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/forks","keys_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/teams","hooks_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/hooks","issue_events_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/issues/events{/number}","events_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/events","assignees_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/assignees{/user}","branches_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/branches{/branch}","tags_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/tags","blobs_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/git/refs{/sha}","trees_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/statuses/{sha}","languages_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/languages","stargazers_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/stargazers","contributors_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/contributors","subscribers_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/subscribers","subscription_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/subscription","commits_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/commits{/sha}","git_commits_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/git/commits{/sha}","comments_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/comments{/number}","issue_comment_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/issues/comments{/number}","contents_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/contents/{+path}","compare_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/merges","archive_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/downloads","issues_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/issues{/number}","pulls_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls{/number}","milestones_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/milestones{/number}","notifications_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/labels{/name}","releases_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/releases{/id}","deployments_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/deployments","created_at":"2016-10-11T07:54:44Z","updated_at":"2016-10-11T07:59:06Z","pushed_at":"2016-10-18T10:40:03Z","git_url":"git://github.com/memorydumB/Keithley_Eth.git","ssh_url":"git@github.com:memorydumB/Keithley_Eth.git","clone_url":"https://github.com/memorydumB/Keithley_Eth.git","svn_url":"https://github.com/memorydumB/Keithley_Eth","homepage":null,"size":93545,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"memorydumB:master","ref":"master","sha":"7337d221204c798afe7774b11f55a72ce822b18c","user":{"login":"memorydumB","id":22431502,"avatar_url":"https://avatars.githubusercontent.com/u/22431502?v=3","gravatar_id":"","url":"https://api.github.com/users/memorydumB","html_url":"https://github.com/memorydumB","followers_url":"https://api.github.com/users/memorydumB/followers","following_url":"https://api.github.com/users/memorydumB/following{/other_user}","gists_url":"https://api.github.com/users/memorydumB/gists{/gist_id}","starred_url":"https://api.github.com/users/memorydumB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memorydumB/subscriptions","organizations_url":"https://api.github.com/users/memorydumB/orgs","repos_url":"https://api.github.com/users/memorydumB/repos","events_url":"https://api.github.com/users/memorydumB/events{/privacy}","received_events_url":"https://api.github.com/users/memorydumB/received_events","type":"User","site_admin":false},"repo":{"id":70569616,"name":"Keithley_Eth","full_name":"memorydumB/Keithley_Eth","owner":{"login":"memorydumB","id":22431502,"avatar_url":"https://avatars.githubusercontent.com/u/22431502?v=3","gravatar_id":"","url":"https://api.github.com/users/memorydumB","html_url":"https://github.com/memorydumB","followers_url":"https://api.github.com/users/memorydumB/followers","following_url":"https://api.github.com/users/memorydumB/following{/other_user}","gists_url":"https://api.github.com/users/memorydumB/gists{/gist_id}","starred_url":"https://api.github.com/users/memorydumB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memorydumB/subscriptions","organizations_url":"https://api.github.com/users/memorydumB/orgs","repos_url":"https://api.github.com/users/memorydumB/repos","events_url":"https://api.github.com/users/memorydumB/events{/privacy}","received_events_url":"https://api.github.com/users/memorydumB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/memorydumB/Keithley_Eth","description":null,"fork":false,"url":"https://api.github.com/repos/memorydumB/Keithley_Eth","forks_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/forks","keys_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/teams","hooks_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/hooks","issue_events_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/issues/events{/number}","events_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/events","assignees_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/assignees{/user}","branches_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/branches{/branch}","tags_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/tags","blobs_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/git/refs{/sha}","trees_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/statuses/{sha}","languages_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/languages","stargazers_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/stargazers","contributors_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/contributors","subscribers_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/subscribers","subscription_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/subscription","commits_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/commits{/sha}","git_commits_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/git/commits{/sha}","comments_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/comments{/number}","issue_comment_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/issues/comments{/number}","contents_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/contents/{+path}","compare_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/merges","archive_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/downloads","issues_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/issues{/number}","pulls_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls{/number}","milestones_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/milestones{/number}","notifications_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/labels{/name}","releases_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/releases{/id}","deployments_url":"https://api.github.com/repos/memorydumB/Keithley_Eth/deployments","created_at":"2016-10-11T07:54:44Z","updated_at":"2016-10-11T07:59:06Z","pushed_at":"2016-10-18T10:40:03Z","git_url":"git://github.com/memorydumB/Keithley_Eth.git","ssh_url":"git@github.com:memorydumB/Keithley_Eth.git","clone_url":"https://github.com/memorydumB/Keithley_Eth.git","svn_url":"https://github.com/memorydumB/Keithley_Eth","homepage":null,"size":93545,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/1"},"html":{"href":"https://github.com/memorydumB/Keithley_Eth/pull/1"},"issue":{"href":"https://api.github.com/repos/memorydumB/Keithley_Eth/issues/1"},"comments":{"href":"https://api.github.com/repos/memorydumB/Keithley_Eth/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/memorydumB/Keithley_Eth/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/memorydumB/Keithley_Eth/statuses/d3cdb1178d4c42149a874856a1a8555f9ef1133d"}}}}
{"actor":{"display_login":"loyd"}}