Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
linked_list2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Liam E. Roeth
linked_list2
Commits
b730c2ff
Commit
b730c2ff
authored
Sep 17, 2020
by
Liam E. Roeth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update llist.h
parent
f95e4035
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
llist.h
llist.h
+26
-0
No files found.
llist.h
View file @
b730c2ff
typedef
int
datatype
;
typedef
struct
Node
{
int
data
;
struct
Node
*
next
;
}
NODE
;
typedef
struct
Node_Err
{
NODE
*
node
;
int
err
;
}
NODE_ERR
;
void
print_node
(
NODE
*
head
,
int
pos
);
void
print_list
(
NODE
*
head
);
NODE
*
search
(
int
n
,
NODE
*
head
);
NODE
*
construct
(
datatype
data
,
NODE
*
next
);
NODE
*
traverse
(
NODE
*
head
,
int
pos
);
int
delete_node_after
(
NODE
*
head
);
NODE
*
Construct_List
(
datatype
list
[],
int
size
);
int
Add_To_End
(
NODE
*
head
,
datatype
new_data
);
int
Insert_Node
(
NODE
*
head
,
int
pos
,
datatype
new_data
);
int
Insert_Node_After
(
NODE
*
head
,
datatype
data
);
NODE
*
Search
(
NODE
*
head
,
datatype
data
);
int
Length
(
NODE
*
head
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment