Skip to content

Commit 0bac958

Browse files
committed
Add some more comments to 'main'
1 parent 4b6c079 commit 0bac958

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ int main(void) {
4141
goto cleanup_curl;
4242
}
4343

44+
/* Obtain the JSON with the thread list */
4445
cJSON* root_json = request_json_from_url(curl, THREADS_URL);
4546
if (root_json == NULL) {
4647
exit_code = EXIT_FAILURE;
4748
goto cleanup_curl;
4849
}
4950

51+
/* Extract the IDs of all available threads */
5052
static ThreadId thread_ids[MAX_THREADS] = { 0 };
5153
const size_t retreived_ids =
5254
thread_ids_from_json(thread_ids, ARRLEN(thread_ids), root_json);
@@ -55,6 +57,7 @@ int main(void) {
5557
goto cleanup_json;
5658
}
5759

60+
/* Request information about each thread, and print its contents */
5861
for (size_t i = 0; i < retreived_ids; i++) {
5962
const ThreadId cur_thread_id = thread_ids[i];
6063
if (cur_thread_id == 0)

0 commit comments

Comments
 (0)