Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

File/File Size list - C

Name: Anonymous 2011-11-22 7:02

Was wondering if any C guru's knew where the hell im going wrong with my code, I just want to list file names and file sizes of files in a directory, file sizes seem to be printing as addresses. Learning C is hard ;(

Should be easy!

http://pastebin.com/Y6ruNEum

Name: Anonymous 2011-11-23 16:49

>>35
Now who is teaching who you nigger? With that, try the following..

a = 2;
b = 3;
if (a) printf(" a is true\n")
if (b) printf("b is true\n");
if (a == b) printf("a == b\n"); else printf("a != b\n");


In C, you should not test for "true"

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List