Einzelnen Beitrag anzeigen
Alt 10.10.2012, 01:45   #77
leecher
Moderator
C_CLOSE

E r g e b n i s / R e s u l t

The C_CLOSE function closes a file descriptor you obtained from C_OPEN.

B e s c h r e i b u n g / D e s c r i p t i o n

The C_CLOSE function closes the filedescriptor fd.

S y n t a x

Code:
res = call ('C_CLOSE' , fd)
P a r a m e t e r

fd - The file descriptor you obtained from C_OPEN

R e t u r n s

0 on success, -1 on error.

B e i s p i e l / E x a m p l e

Code:
attach 'FILE0'
fd = CALL ("C_OPEN", "FILE.TXT", "w")
b = CALL("C_CLOSE", fd)
detach 'FILE0'
leecher ist offline   Mit Zitat antworten