aboutsummaryrefslogtreecommitdiff
path: root/src/stack-linked-list.c
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2024-09-06 21:10:21 +0200
committerThomas Schmucker <ts@its1.de>2024-09-06 21:10:21 +0200
commit9e8caf1e06ba7510160305da11a30d91dcfc23e5 (patch)
tree30da0c941191d0907abe829feb1bf75f0fca4b3a /src/stack-linked-list.c
parent4ecdad9462c4447c1370cf1dd1341b2289c28566 (diff)
downloaddata-structures-9e8caf1e06ba7510160305da11a30d91dcfc23e5.tar.gz
data-structures-9e8caf1e06ba7510160305da11a30d91dcfc23e5.tar.bz2
data-structures-9e8caf1e06ba7510160305da11a30d91dcfc23e5.zip
reformat source code
Diffstat (limited to 'src/stack-linked-list.c')
-rw-r--r--src/stack-linked-list.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/stack-linked-list.c b/src/stack-linked-list.c
index 48b9eba..7c01a1d 100644
--- a/src/stack-linked-list.c
+++ b/src/stack-linked-list.c
@@ -85,7 +85,7 @@ stack_free(struct stack *stack)
85/* -->8-- */ 85/* -->8-- */
86 86
87int 87int
88main() 88main(void)
89{ 89{
90 struct stack stack[1]; 90 struct stack stack[1];
91 91
@@ -96,11 +96,11 @@ main()
96 96
97 /* 97 /*
98 while ( !stack_empty(stack) ) { 98 while ( !stack_empty(stack) ) {
99 int i; 99 int i;
100 if ( stack_pop(stack, &i) ) 100 if ( stack_pop(stack, &i) )
101 printf("%d\n", i); 101 printf("%d\n", i);
102 else 102 else
103 ERROR("this shouldn't happen!"); 103 ERROR("this shouldn't happen!");
104 } 104 }
105 */ 105 */
106 106