Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
key-value-store
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Samarth Joshi
key-value-store
Commits
c5045548
Commit
c5045548
authored
Nov 09, 2020
by
Samarth Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memset 0
parent
d34a27c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
temp.c
temp.c
+1
-3
No files found.
temp.c
View file @
c5045548
...
...
@@ -36,9 +36,7 @@ void file_del(off_t offset, char *key)
sem_wait
(
&
mutex
[
index
]);
char
blankspace
[
512
];
for
(
int
i
=
0
;
i
<
512
;
i
++
)
{
blankspace
[
i
]
=
0
;
}
memset
(
blankspace
,
0
,
512
);
lseek
(
fds
[
index
],
offset
,
SEEK_SET
);
write
(
fds
[
index
],
blankspace
,
512
);
...
...
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