Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
algorithmique
lib_2021_malaspinas
stack
Merge requests
!16
Resolve "Add pop function"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add pop function"
6-add-pop-function
into
main
Overview
3
Commits
8
Pipelines
0
Changes
1
2 unresolved threads
Hide all comments
Merged
ines.maya
requested to merge
6-add-pop-function
into
main
3 years ago
Overview
3
Commits
8
Pipelines
0
Changes
1
2 unresolved threads
Hide all comments
Expand
Closes
#6 (closed)
0
0
Merge request reports
Viewing commit
8d8794f1
Prev
Next
Show latest version
1 file
+
0
−
13
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
8d8794f1
eneleve tous ceux qui est pas fonction pop
· 8d8794f1
ines.maya
authored
3 years ago
stack.c
+
0
−
13
Options
#include
<stdio.h>
#include
<stdlib.h>
#include
<assert.h>
#include
<stdbool.h>
#define DEFAULT_CAPACITY 4
typedef
struct
_stack
{
int
*
data
;
int
capacity
;
int
top
;
}
stack
;
// depile
// depile
void
stack_pop
(
stack
*
s
,
int
*
value
){
void
stack_pop
(
stack
*
s
,
int
*
value
){
assert
(
s
->
top
>=
0
&&
"Stcak is empty
\n
"
);
assert
(
s
->
top
>=
0
&&
"Stcak is empty
\n
"
);
Loading