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:31

>>20
>>19
>>18
>For each of the signed integer types, there is a corresponding (but different) unsigned
integer type (designated with the keyword unsigned) that uses the same amount of
storage (including sign information) and has the same alignment requirements. The type
_Bool and the unsigned integer types that correspond to the standard signed integer
types are the standard unsigned integer types. The unsigned integer types that
correspond to the extended signed integer types are the extended unsigned integer types.
The standard and extended unsigned integer types are collectively called unsigned integer
types.30)

>When any scalar value is converted to _Bool, the result is 0 if the value compares equal
to 0; otherwise, the result is 1.

Also, true and false are macros that expand to 1 and 0 respectively. Even though it has its own type, it's still an integer, faggot.

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