Mail Archives: djgpp/1993/03/11/10:28:50
Thanks for the responses...
my program was simple:
======================================
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
main()
{
char line[2][81];
int stat=0;
printf("\nline 1: ");
gets(line[0]);
printf("\nline 2: ");
gets(line[1]);
stat = strcmp(line[0],line[1]);
printf("\nresult: %d",stat);
exit(0);
}
=======================================
I noticed the problem in a huge program and thought that maybe I screwed
something up some place, so I wrote this one just to make sure... and still
got the same strange results.
BUT,
now that problem has simple vanished and when I compile the program (this one)
the compiler says something about line being undeclared on its first use
in main (or something like that?)
I am really starting to think that there is something wrong with my hard
drive or math co-processor or something...
Anyway thanks for all the help...
================================================================================
Thank you, || "Sol est invisiblis in hominibus, in terra vero
Michael Thomas || visibilis, tamen ex uno et eodem sole sunt ambo"
(..uunet!ckgp!thomas) || -- Theatrum Chemicum (Ursel, 1602)
================================================================================
- Raw text -