TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: JAVIER KOHEN
from: NEIL HELLER
date: 1998-02-07 09:02:00
subject: :~(

JK> With Borland 4.51 I get, well, nothing... it doesn't even creates
JK> the file, and if it existed, it doesn't care either. 
JK> #ifdef TEST__LOG
 
JK> #include 
 
JK> int main(void)
JK> {
JK>     FILE *mylog;
 
JK>     mylog = openLog("test.log");
JK>     if (NULL == mylog) {
JK>         perror("test.log");
JK>         return (EXIT_FAILURE);
JK>     }
 
JK>     if (0 == Log("Hola", mylog)) {
JK>         perror("test.log");
JK>         return (EXIT_FAILURE);
JK>     }
 
JK>     if (0 == Log("Mundo", mylog)) {
JK>         perror("test.log");
JK>         return (EXIT_FAILURE);
JK>     }
 
JK>     rewind(mylog);
 
JK>     if (0 == Log("Chau", mylog)) {
JK>         perror("test.log");
JK>         return (EXIT_FAILURE);
JK>     }
JK> 
JK>     closeLog(mylog);
 
JK>     return (EXIT_SUCCESS);
JK> }
 
JK> #endif  /* ifdef TEST__LOG */
What amazes me is that this even compiles.  If you don't have TEST_LOG
defined, there's isn't even a main().  My suggestion to you is to lose
the #ifdef...#endif lines.
 * KWQ/2 1.2i *
--- FLAME v1.1
---------------
* Origin: Port Chicago's Loading Dock - 510-676-5359 (1:161/204)

SOURCE: echomail via exec-pc

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™.