Displaying 2 results from an estimated 2 matches for "parseline".
Did you mean:
parse_line
2009 Jul 12
1
How can I test for End-Of-FIle
...th uneven record length and variable structure.
Therefore I have to read it line-by-line.
I found out I can open a connection to the file and read in one line at a time.
Something like:
con <- file("MyFle.txt","r")
while (End-Of-File) {
line <- readLines(con,n=1)
ParseLine(line)
}
But I realized I do not know how to test for the End-Of-File condition using R language.
I found a ghost documentation page mentioning an R built-in function "isEof(connection)".
But such a function is not listed in R "utils" package it seems to belong to.
I would ap...
2005 Mar 16
0
tftpd remap rules
...0.40/tftpd/remap.c.old 2005-03-16 16:34:34.000000000 -0500
+++ tftp-hpa-0.40/tftpd/remap.c 2005-03-16 16:22:49.000000000 -0500
@@ -275,6 +275,7 @@
int lineno = 0;
int err = 0;
+ memset(this_rule, '\0', sizeof(struct rule));
while ( lineno++, fgets(line, MAXLINE, f) ) {
rv = parseline(line, this_rule, lineno);
if ( rv < 0 )
@@ -283,6 +284,7 @@
*last_rule = this_rule;
last_rule = &this_rule->next;
this_rule = tfmalloc(sizeof(struct rule));
+ memset(this_rule, '\0', sizeof(struct rule));
}
}
--
Peter