On 06/12, Shawn rearranged the electrons to read:
> I would love if the list_dir C
> inline sub returned an arry of scalars which would be something like
> <st_dev>/<st_ino>/<mode>/<size>/<mtime>/<filename>
Anyone had any ideas or samples relevant to my task? I'm offering a
$20.00 (or so) item from Copyleft.net to the 1st Joe Coder who
finally helps me solve my task unto full fruition. (I really am sorry
for my slow progress in learning C, I've been at it for two or three
days now...)
Big deal, I know... Just trying to offer what I can...
> And maybe some help on bitmasking to check what type of file the thing
> is and whether it's readable/writable.
S_ISREG(m) is it a regular file?
S_ISDIR(m) directory?
S_ISCHR(m) character device?
S_ISBLK(m) block device?
S_ISFIFO(m) fifo?
S_ISLNK(m) symbolic link? (Not in POSIX.1-1996.)
S_ISSOCK(m) socket? (Not in POSIX.1-1996.)
Looks like the POSIX macros will help me check file type, but I would
love to be able to see if the current process could r w or x the file
simply... I'm on frigging square one with C...
--
Hob Goblin
[EMAIL PROTECTED]
I got my driver's license photo taken out of focus on purpose. Now when
I get pulled over the cop looks at it [moving it nearer and farther, trying
to see it clearly]... and says "Here, you can go."
-- Stephen Wright