Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
queue
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
queue
Merge requests
!11
Draft:queue_init
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft:queue_init
1-add-queue_init
into
main
Overview
0
Commits
1
Pipelines
0
Changes
2
Closed
gaetan.siffert
requested to merge
1-add-queue_init
into
main
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Closes
#1 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
9515f6e6
1 commit,
3 years ago
2 files
+
8
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
queue.c
+
7
−
0
Options
@@ -4,3 +4,10 @@ bool is_empty(queue q){
return
(
q
.
tail
<
0
);
}
void
queue_init
(
queue
*
q
)
{
q
->
capacity
=
-
1
;
q
->
tail
=
-
1
;
q
->
data
=
malloc
(
sizeof
(
int
));
return
q
;
}
\ No newline at end of file
Loading