GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-565e82de51
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
eol.c
Go to the documentation of this file.
1
/***********************************************************
2
* I_get_to_eol (line,len,fd)
3
*
4
* Reads from fd until the newline, copying the first len-1
5
* characters into line. The newline is not copied.
6
* len should be the length of line in bytes. This allows for
7
* a NULL to be added at the end.
8
***********************************************************/
9
10
#include <
grass/imagery.h
>
11
#include <
stdio.h
>
12
13
int
I_get_to_eol
(
char
*line,
int
len, FILE *fd)
14
{
15
int
c;
16
int
n;
17
18
n = len - 1;
19
while
((c = fgetc(fd)) >= 0 && c !=
'\n'
)
20
if
(n-- > 0)
21
*line++ = c;
22
if
(len > 0)
23
*line = 0;
24
return
c ==
'\n'
;
25
}
I_get_to_eol
int I_get_to_eol(char *line, int len, FILE *fd)
Definition:
eol.c:13
imagery.h
stdio.h
lib
imagery
eol.c
Generated on Thu Mar 20 2025 07:33:24 for GRASS GIS 8 Programmer's Manual by
1.9.1