- #include <stdio.h>
- void mksize (float bytes, char *ret) {
- if (bytes < 1024)
- else if (bytes < 1048576)
- else if (bytes < 1073741824)
- else if (bytes < 1099511627776)
- else
- }
- void main() {
- char out[255];
- mksize(1572864, out);
- }
C friendly filesizes
Posted by Admin on Sat 4th Aug 2012 01:41
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.