Thread View: pl.comp.os.linux.programowanie
2 messages
2 total messages
Started by Kamil Jonca
Thu, 09 Sep 1999 14:49
stream (fdopen)
Author: Kamil Jonca
Date: Thu, 09 Sep 1999 14:49
Date: Thu, 09 Sep 1999 14:49
9 lines
1096 bytes
1096 bytes
Czy jest konstruktor/metoda dla strumieni w c++ która pozwalałaby się podpiąć do deskryptora ? (Coś jak fdopen) Ew. może być podpięcie się do FILE* KJ -- Kamil Jońca kj153553@zodiac2.mimuw.edu.pl EMACS = Emacs Manuals Are Cryptic and Surreal
Re: stream (fdopen)
Author: Cezary H. Noweta
Date: Thu, 09 Sep 1999 16:25
Date: Thu, 09 Sep 1999 16:25
31 lines
1664 bytes
1664 bytes
Witam, Kamil Jonca wrote: > Czy jest konstruktor/metoda dla strumieni w c++ która pozwalałaby się > podpiąć do deskryptora ? (Coś jak fdopen) > Ew. może być podpięcie się do FILE* fstream::fstream(int fd); fstream::attach(int fd); Do int fd: fstream f(fd); lub fs.attach(fd); Do FILE *f: /* ANSI C nie obejmuje fileno(...) */ fstream fs(fileno(f)); lub fs.attach(fileno(f)); Klasa fstream jest potomkiem iostream (odpowiednio ofstream - ostream, ifstream - istream). -- pozdrawiam -- Cezary H. Noweta 90-237 LODZ, ul. J.Matejki 34/38 POLAND (chncc@irys.usun.drugiitrzeciczlon.uni.lodz.pl) +48 42 6356013, 6356012 University of Lodz - Main Library fax 6781678
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads