Re: [htdig3-dev] popen or fopen ?


Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Thu, 9 Sep 1999 09:14:04 -0500 (CDT)


According to loic@ceic.com:
> When using -t with htdig I got the following error:
>
> sh: /home/loic/local/ports/htdig3/test/var/htdig/db.docs: No such file or directory
>
> Apparently this is because it's opened with popen instead of fopen. Nice
> if a program, loses if a simple file. I replaced with fopen. Did not
> commit this yet. Thoughts ?

Yes, it should be fopen. Also, there should be an fclose at the end of
the function, shouldn't there?

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev@htdig.org containing the single word "unsubscribe" in the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Thu Sep 09 1999 - 07:17:23 PDT