Alright, second try:
80000MB/1024 = 78.125 GB (this is the way your os calculates it)
80000MB/1000 = 80GB this is the way the company is calculating it to say it is more do you understand that ?
1024Byte = 1KB
1024KByte = 1MB
1024MByte = 1GB
It doesn't matter if it is recognized as cd-rom or dvd by your OS, because the only diverence between those two in the driver is the size of the media, try to put a dvd into it and mount it and you'll recognize that you can read the data
you could do such an thing with clearscreen and printf in a loop, but it'll look ugly and I think it is a bit of a silly idea doing such a thing without a header like curses.h ncurses.h (I don't know if they work on windows) or conio.h for msdos
sorry, i just forgot to enter the close in the post it is in my real prog, also are the params, i just posted a real slim code fragment, sorryy anout that
i am looking for a good man/tutorial or information about the functions of sys/ioctl,
is it possible to get information about a device with this header ?
i need a c-function that can get me the size of the hd,
without using system(), via ftell and fseek i can determine the size of a file, but as soon as i try to use this on eg. dev/hda it all goes wrong,
in my programm the file is opened via low-level i/o,
it works perfectly as long as i open a...
where there is a thought there is a way:
I assume you have only one hd with one Partition in your pc:
1: get a copy (legal of course :) ) of partition Magic 7.x,
2: split you partition c into two
3: Save the programms on the new partition
4: remember to save the Regestry Information too ;)
5...
Hello,
At the moment i am trying to program a Harddisc Benchmark for Linux, my problem is how to get the size of the Harddisc and how to read it from block 0 to the very end of it end meassuring the speed.
I tried it using fseek,lseek, but i am only able to determine the size of a file (this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.