libtmpfilefd man page on Mandriva

Man page or keyword search:  
man Server   17060 pages
apropos Keyword Search (all sections)
Output format
Mandriva logo
[printable version]

Netpbm subroutine librarNetpbmtsubroutine)library:npm_tmpfile_fd() function(3)

NAME
       pm_tmpfile_fd() - create a temporary unnamed file

SYNOPSIS
       #include <netpbm/pm.h>

       FILE *
       pm_tmpfile_fd(void);

EXAMPLE
       This  simple  example creates a temporary file, writes 'hello world' to
       it, then reads back and prints those contents.

       #include <netpbm/pm.h>

       int fd;

       fd = pm_tmpfile();

       write(fd, 'hello world\n', 17);

       lseek(fd, 0, SEEK_SET);

       read(fd, buffer, sizeof(buffer));

       fprintf(STDOUT, 'temp file contains '%s'\n', buffer);

       close(fd);

DESCRIPTION
       This library function is part of Netpbm(1).

       pm_tmpfile_fd()	is  analogous  to  pm_tmpfile()(1).Theonlydifferenceis
       that  it	 opens	the  file as a low level file, as open() would, rather
       than as a stream, as fopen() would.

       If you need to refer to the temporary file by  name,  use  pm_make_tmp‐
       file_fd() instead.

HISTORY
       pm_tmpfile() was introduced in Netpbm 10.42 (March 2008).

netpbm documentation	Netpbm subroutinerlibrary: pm_tmpfile_fd() function(3)
[top]

List of man pages available for Mandriva

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net