[Disksim-users] Error reading 'Byte Order:'

keepeffort keepeffort at naver.com
Tue Nov 13 12:42:00 EST 2007


Hi all,
 
Line 384 to 395 in Disksim.c, 
 
384 if (fscanf(parfile, "\nByte Order (Endian): %s\n", seed) != 1) {
385 fprintf(stderr, "Error reading 'Byte Order:'\n");
386 exit(0);
387 }
388 if (strcmp(seed, "Little") == 0) {
389 disksim->endian = _LITTLE_ENDIAN;
390 } else if (strcmp(seed, "Big") == 0) {
391 disksim->endian = _BIG_ENDIAN;
392 } else {
393 fprintf(stderr, "Invalid byte ordering scheme - %s\n", seed);
394 exit(0);
395 }
 
'Fscanf' scan a stored data at parfile. And then, it compare the string whether 'Little' or 'Big'.
Now, 'Little' is stored at 'parfile', but it happen error at line number of 385 . Error reading 'Byte Order:'.
I don't know why this error is happened.
I'll very appreciate of any advice.
 
Best regards,
YG
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/disksim-users/attachments/20071114/43bd8af0/attachment.html>


More information about the Disksim-users mailing list