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)
|