Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
20e15dfd
Commit
20e15dfd
authored
Jul 13, 1994
by
Richard M. Stallman
Browse files
(xmalloc): New function.
parent
bab863c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
lib-src/timer.c
lib-src/timer.c
+17
-0
No files found.
lib-src/timer.c
View file @
20e15dfd
...
...
@@ -349,4 +349,21 @@ strerror (errnum)
#endif
/* ! HAVE_STRERROR */
long
*
xmalloc
(
size
)
int
size
;
{
register
long
*
val
;
val
=
(
long
*
)
malloc
(
size
);
if
(
!
val
&&
size
)
{
fprintf
(
stderr
,
"timer: virtual memory exceeded
\n
"
);
exit
(
1
);
}
return
val
;
}
/* timer.c ends here */
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