1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
.\" placed in the public domain by Will Naylor -*- nroff -*-
.\" 1998-08-21 formatting added by Jim Van Zandt <jrv@vanzandt.mv.com>
.TH WNCSTL 3 "August 23, 1998" "WNLIB" ""
.SH NAME
wn_make_file_parse_cstream, wn_make_file_write_cstream, wn_make_string_parse_cstream, wn_file_parse_move_block, wn_file_write_move_block, wn_string_parse_move_block \- make various kinds of cstreams
.SH SYNOPSIS
.nf
.B #include <wn/wncstr.h>
.sp
.B wn_make_file_parse_cstream(&\fIstream\fP,\fIf\fP)
.B wn_cstream \fIstream\fP;
.B wn_file \fIf\fP;
.sp
.B wn_make_file_write_cstream(&\fIstream\fP,\fIf\fP)
.B wn_cstream \fIstream\fP;
.B wn_file \fIf\fP;
.sp
.B wn_make_string_parse_cstream(&\fIstream\fP,\fIstring\fP)
.B wn_cstream \fIstream\fP;
.B char *\fIstring\fP;
.sp
.B void wn_file_parse_move_block(\fIblock\fP,\fIpactually_moved\fP,\fIrequest_moved\fP,\fIpf\fP)
.B char \fIblock\fP[];
.B int *\fIpactually_moved\fP,\fIrequest_moved\fP;
.B wn_file *\fIpf\fP;
.sp
.B void wn_file_write_move_block(\fIblock\fP,\fIpactually_moved\fP,\fIrequest_moved\fP,\fIpf\fP)
.B char \fIblock\fP[];
.B int *\fIpactually_moved\fP,\fIrequest_moved\fP;
.B wn_file *\fIpf\fP;
.sp
.B void wn_string_parse_move_block(\fIblock\fP,\fIpactually_moved\fP,\fIrequest_moved\fP,
.B \fIpstring\fP)
.B char \fIblock\fP[];
.B int *\fIpactually_moved\fP,\fIrequest_moved\fP;
.B char **\fIpstring\fP;
.SH DESCRIPTION
These routines are helpful in making various kinds of cstreams.
\fBwn_make_file_parse_cstream\fP makes a parse cstream using the file
\fIf\fP. \fIf\fP must already be opened for read. \fIf\fP must be
closed after the parse is complete.
\fBwn_make_file_write_cstream\fP makes a write cstream using the file \fIf\fP.
\fIf\fP must already be opened for write. \fIf\fP must be closed after the write
is complete.
\fBwn_make_string_parse_cstream\fP make a parse cstream using the string
\fIstring\fP.
\fBwn_file_parse_move_block\fP, \fBwn_file_write_move_block\fP, and
\fBwn_string_parse_move_block\fP may be used to help build more
complicated cstream's for files and strings.
.\".SH BUGS
.SH "SEE ALSO"
wncstr
.SH AUTHOR
Will Naylor
|