diff options
| author | mo khan <mo.khan@gmail.com> | 2020-07-05 15:13:37 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-07-05 15:13:37 -0600 |
| commit | 1a6c786ede4f9b6f588b7b8736fb71e242c32fc4 (patch) | |
| tree | e3802e846639d6a7138885c2be2f0e1a35913a2a /src/01 | |
| parent | 6db0bd189b34d83867e1117f822013704b6fc358 (diff) | |
Run make fmt1.0.0
Diffstat (limited to 'src/01')
| -rw-r--r-- | src/01/02b/doubly_linked_list.c | 3 | ||||
| -rw-r--r-- | src/01/05/doubly_linked_list.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/01/02b/doubly_linked_list.c b/src/01/02b/doubly_linked_list.c index cc18a71..e3d3980 100644 --- a/src/01/02b/doubly_linked_list.c +++ b/src/01/02b/doubly_linked_list.c @@ -148,7 +148,8 @@ char *to_s(Node *node) { memset(buffer, buffer_size, '\0'); if (node->prev && node->next) - snprintf(buffer, buffer_size, "(%d<%d>%d) ", node->prev->data, node->data, node->next->data); + snprintf(buffer, buffer_size, "(%d<%d>%d) ", node->prev->data, node->data, + node->next->data); else if (node->next) snprintf(buffer, buffer_size, "(nil<%d>%d) ", node->data, node->next->data); else diff --git a/src/01/05/doubly_linked_list.c b/src/01/05/doubly_linked_list.c index 307fcb3..dbeab6d 100644 --- a/src/01/05/doubly_linked_list.c +++ b/src/01/05/doubly_linked_list.c @@ -138,7 +138,8 @@ char *to_s(Node *node) { memset(buffer, buffer_size, '\0'); if (node->prev && node->next) - snprintf(buffer, buffer_size, "(%d<%d>%d) ", node->prev->data, node->data, node->next->data); + snprintf(buffer, buffer_size, "(%d<%d>%d) ", node->prev->data, node->data, + node->next->data); else if (node->next) snprintf(buffer, buffer_size, "(nil<%d>%d) ", node->data, node->next->data); else |
