You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jeff Trawick <tr...@attglobal.net> on 2003/04/04 02:28:04 UTC
apr_file_gets() and final lines with no '\n'
If the last line of the file has no '\n', apr_file_gets() returns the
data but with rc APR_EOF.
Thus the familiar
while (apr_file_gets() == APR_SUCCESS) {
chomp the possible newline
process the data
}
ideom is broken.
I guess this is wonderful and I will get to update/test various paths in
mod_cgi[d] that aren't so smart about the harsh reality :)