www.delorie.com/djgpp/doc/libc-2.01/libc_92.html   search  
Go to the first, previous, next, last section, table of contents.


close

Syntax

#include <unistd.h>

int close(int fd);

Description

The open file associated with fd is closed.

Return Value

Zero if the file was closed, nonzero if fd was invalid or already closed.

Example

int fd = open("data", O_RDONLY);
close(fd);


Go to the first, previous, next, last section, table of contents.

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 1997   by DJ Delorie     Updated Apr 1997  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)