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

>>29
page 253

7.16 Boolean type and values <stdbool.h>
1 The header <stdbool.h> defines four macros.
2 The macro
bool
expands to _Bool.
3
The remaining three macros are suitable for use in #if preprocessing directives. They
are
true
which expands to the integer constant 1,
false
which expands to the integer constant 0, and
_ _bool_true_false_are_defined
which expands to the integer constant 1.
4
Notwithstanding the provisions of 7.1.3, a program may undefine and perhaps then
redefine the macros bool, true, and false.216)

I understand you probably don't have access to this standard. You can find equivalent information on manpage of stdbool.h.

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