TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Bob Lawrence
from: Paul Edwards
date: 1996-11-23 14:13:50
subject: TIC

PE> Oh yeah. However, you could get it on unix by doing a separate
PE> call to fstat(). 

BL> I tried that. What's the format of the stat struct? It returns a
BL> longint that ctime() formats into a huge string but I can't find
BL> anything else that works on it. Or is it just the DOS integers joined
BL> together?

Should be # seconds since 1970.

PE> That is not C's efforts to do files, that is "C's" effort to do
PE> directories. C does not do directories.

BL> Gee... fancy that. I always thought files were directories. Silly
BL> me. No wonder I have so much trouble with them. 

That's right.

BL> C doesn't do files very well, either. I wasted a whole bloody day
BL> stuffing around with date/time.. and how do I erase/move/copy files in 
BL> UNIX? It says you can delete entries using opendir() but it doesn't 
BL> say how. 

I didn't think you could delete entries via opendir().  You can via
remove() though.  And that's ISO C rather than POSIX, too boot! BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.