im looking for a easy way to list files/directpries, almost a basic ls command program. i have checked out a couple website about this but must are either serval pages or wont complile.
im looking for a easy way to list files/directpries, almost a basic ls command program. i have checked out a couple website about this but must are either serval pages or wont complile.
where did "DIR *d;" come from?
i was going to do this in linux. but a way that would work in linux and dos would be nice.
can any one tell me how to only show folders?
well, the first code you gave me does work fine (thanks) in linux and windows but the second doesnt want to work in windows.
I set the dir to C: and nothing gets listed, any ideas why?
im kind of new to to c and i need some kind of libarary/header reference site, any ideas? i know a couple that help with the major/standard ones, but nothing about libraries like these.
thanks for the help
that site does show how to use it, but it doesnt explain alot. theres pages for things like printf and and the whole stdio.h library in books/online but what about the other functions/libraries? thats what i need, a mix between a howto and a reference book.
also, how could i find out what dir the program is working in. i dont see a whereami like command in io.h
i was just looking for a particulary good book/website. im still learning c and really cant tell the difference between a great c site and bull. if it explains it and resembles a man page i just have to assume its good. if i knew it i wouldnt be looking it up!
>i was just looking for a particulary good book/website.
Book: The C Programming Language (K&R)
Website: You're on it.
-Prelude
My best code is written with the delete key.