TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Roy J. Tellason
from: andrew clarke
date: 2003-06-22 19:47:56
subject: dos2unix

Sun 2003-06-22 04:06, Roy J. Tellason (1:270/615) wrote to andrew clarke:

 RJT> I got the conditional,  I just don't know what those headers are
 RJT> for.  I suppose I could find them and have a look?  :-)

The quickest way to find out would be to comment them out (or better yet
use #if 0 ... #endif) and see what your compiler complains about.

 RJT>> static struct stat s_buf;

 ac>> Declare a variable of type struct stat and call it s_buf.  Make it
 ac>> static, ie. local to this .c file only, which has the side effect
 ac>> of setting all its values to zero during program startup.

 RJT> That side effect is an interesting tidbit,  I hadn't remembered
 RJT> that.  But then I wouldn't have expected any initialization to
 RJT> take place unless I put some in there,  so not remembering that
 RJT> wouldn't have been a problem.

Actually the side effect is unnecessary as the zero values will be
overwritten when stat() is called.

-- mail{at}ozzmosis.com

--- timEd/FreeBSD 1.11.b1
* Origin: Blizzard of Ozz, Mt Eliza, Melbourne, Australia (3:633/267)
SEEN-BY: 633/267 270
@PATH: 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.