Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brian Smith
nettle
Commits
a45c20c8
Commit
a45c20c8
authored
Feb 07, 2004
by
Niels Möller
Browse files
(xalloc): New function.
Rev: src/nettle/examples/io.c:1.7 Rev: src/nettle/examples/io.h:1.4
parent
783474cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/io.c
View file @
a45c20c8
...
...
@@ -37,6 +37,19 @@
int
quiet_flag
=
0
;
void
*
xalloc
(
size_t
size
)
{
void
*
p
=
malloc
(
size
);
if
(
!
p
)
{
fprintf
(
stderr
,
"Virtual memory exhausted.
\n
"
);
abort
();
}
return
p
;
}
void
werror
(
const
char
*
format
,
...)
{
...
...
examples/io.h
View file @
a45c20c8
...
...
@@ -34,6 +34,9 @@
extern
int
quiet_flag
;
void
*
xalloc
(
size_t
size
);
void
werror
(
const
char
*
format
,
...)
#if __GNUC___
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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