apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject apr_file_gets() and final lines with no '\n'
Date Fri, 04 Apr 2003 00:28:04 GMT
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 :)

View raw message