aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/getdelim.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/getdelim.c')
-rw-r--r--newlib/libc/stdio/getdelim.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/newlib/libc/stdio/getdelim.c b/newlib/libc/stdio/getdelim.c
index 64f60ee..6c3e298 100644
--- a/newlib/libc/stdio/getdelim.c
+++ b/newlib/libc/stdio/getdelim.c
@@ -1,3 +1,4 @@
+/* Copyright 2002, Red Hat Inc. - all rights reserved */
/*
FUNCTION
<<getdelim>>---read a line up to a specified line delimeter
@@ -37,8 +38,7 @@ PORTABILITY
No supporting OS subroutines are directly required.
*/
-/* Copyright 2002, Red Hat Inc. - all rights reserved */
-
+#include <_ansi.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
@@ -48,11 +48,11 @@ No supporting OS subroutines are directly required.
#define DEFAULT_LINE_SIZE 128
ssize_t
-__getdelim (bufptr, n, delim, fp)
- char **bufptr;
- size_t *n;
- int delim;
- FILE *fp;
+_DEFUN(__getdelim, (bufptr, n, delim, fp),
+ char **bufptr _AND
+ size_t *n _AND
+ int delim _AND
+ FILE *fp)
{
char *buf;
char *ptr;
@@ -79,9 +79,9 @@ __getdelim (bufptr, n, delim, fp)
*n = DEFAULT_LINE_SIZE;
}
- _flockfile(fp);
+ _flockfile (fp);
- CHECK_INIT(fp);
+ CHECK_INIT (fp);
numbytes = *n;
ptr = buf;