Commit 63674d19 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

removed unused function _readline_()

parent 205de4d1
......@@ -81,7 +81,6 @@ int getByteorder(int byteswap)
return (byteorder);
}
static
int getFiletype(const char *filename, int *byteorder)
{
......@@ -176,28 +175,6 @@ int getFiletype(const char *filename, int *byteorder)
return (filetype);
}
static int _readline_(FILE *fp, char *line, int len)
{
int ichar, ipos = 0;
while ( (ichar = fgetc(fp)) != EOF )
{
if ( ichar == '\n' ) break;
line[ipos++] = (char)ichar;
if ( ipos >= len )
{
fprintf(stderr, "readline Warning: end of line not found (maxlen = %d)!\n", len);
break;
}
}
line[ipos] = 0;
if ( feof(fp) && ipos == 0 ) return (0);
return (1);
}
/*
@Function streamInqFiletype
@Title Get the filetype
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment