Home
Highly Reusable Software By activity User Interface Text Strings Math Processing
Stored Data
Communications
Hard World File System
|
#License - #Source code - #Example Use -
#include <librock/target/types.c> #include <librock/file.h> struct librock_IOCapture_s * librock_IOCaptureBegin( librock_FILE *f ); char * librock_IOCaptureEndstr( struct librock_IOCapture_s *p, char **ppasz );
This function works under MSVC (WIN32) and Unix/Linux/BSD platforms.
Typical use is
char *asz = 0; struct librock_IOCapture_s *pIOC = librock_IOCaptureBegin((librock_FILE *)stdout); printf("This is a test"); librock_IOCaptureEndstr(pIOC,&asz); /* . . . */ librock_astrfree(&asz);
malloc, free, dup, dup2, close, tmpfile, fclose, fileno rewind, librock_astrfree, librock_astrcat, librock_afgets
Copyright 1998-2002 Forrest J. Cavalier III, http://www.mibsoftware.com Licensed under BSD-ish license, NO WARRANTY. Copies must retain this block. License text in <librock/license/librock.txt> librock_LIDESC_HC=12440211096131f5976d36be0cddca4cd9152e45
librock_IOCaptureBegin passed tests in tiocapt (Unix/Linux/BSD: 2002/08/08 sys=FreeBSD using gcc)
librock_IOCaptureBegin passed tests in tiocapt (WIN32: 2002/08/08 sys=NT 4.0 using MSVC)
librock_IOCaptureEndstr passed tests in tiocapt (Unix/Linux/BSD: 2002/08/08 sys=FreeBSD using gcc)
librock_IOCaptureEndstr passed tests in tiocapt (WIN32: 2002/08/08 sys=NT 4.0 using MSVC)
Verbatim copying and distribution of this generated page is permitted in any medium provided that no changes are made.
(The source of this manual page may be covered by a more permissive license which allows modifications.)
Want to help? We welcome comments, patches. -- Need help? Request paid support.