OK, here are my findings:
I ran nigelts first program in post #6 and it returned:
Code:
> cc l.c && ./a.out
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
String found at position 4598126
1.000 seconds
confused lost and lonely I ran it on icymint3's last program, it returned:
Code:
> cc l.c && ./a.out
selcount = 2403517
Program takes 0.0000 seconds.
Now all of this does not match
Originally Posted by
crosswire
will give a result of
Position = 2403193
Program takes 4 seconds.
Press any key to continue
on input
Code:
100
AAAAAAAAAAAAAAABBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEE
What I also find strange is that the second line contains a few whitespaces but
he uses fscanf(stream, "%s", &S); to read it.
Please clarify...
Regards,
Pogi Tuner.
I am using cc on Tru64 UNIX where the size of char, int, double, long are 1, 4, 8 and 8 respectively.
Using alpha processors with the same endian as x86 platforms.