File: wnwtok.3

package info (click to toggle)
libwn6 6.0-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,996 kB
  • ctags: 3,938
  • sloc: ansic: 45,083; makefile: 926; csh: 274; sh: 12
file content (81 lines) | stat: -rw-r--r-- 2,308 bytes parent folder | download | duplicates (4)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.\" placed in the public domain by Will Naylor     -*- nroff -*-
.\" 1998-08-21 formatting added by Jim Van Zandt <jrv@vanzandt.mv.com>
.TH WNWTOK 3 "August 23, 1998" "WNLIB" ""
.SH NAME
wn_write_double, wn_write_quoted_string, wn_write_literal_n_times, wn_write_empty, wn_write_eos, wn_write_char, wn_write_literal_char, wn_write_blanks, wn_write_blanks_until_column, wn_write_linefeed, wn_write_literal, wn_write_id, wn_write_int \- write stuff

.SH SYNOPSIS
.nf
.B #include <wn/wncstr.h>
.sp
.B wn_write_empty(\fIstream\fP)
.B wn_cstream \fIstream\fP;
.sp
.B wn_write_eos(\fIstream\fP)
.B wn_cstream \fIstream\fP;
.sp
.B wn_write_char(\fIstream\fP,\fIc\fP)
.B wn_cstream \fIstream\fP;
.B char c;
.sp
.B wn_write_literal_char(\fIstream\fP,\fIc\fP)
.B wn_cstream \fIstream\fP;
.B char c;
.sp
.B wn_write_blanks(\fIstream\fP,\fInum\fP)
.B wn_cstream \fIstream\fP;
.B int \fInum\fP;
.sp
.B wn_write_blanks_until_column(\fIstream\fP,\fIcol\fP)
.B wn_cstream \fIstream\fP;
.B int \fIcol\fP;
.sp
.B wn_write_linefeed(\fIstream\fP)
.B wn_cstream \fIstream\fP;
.sp
.B wn_write_literal(\fIstream\fP,\fIliteral\fP)
.B wn_cstream \fIstream\fP;
.B char \fIliteral\fP[];
.sp
.B wn_write_id(\fIstream\fP,\fIid\fP)
.B wn_cstream \fIstream\fP;
.B char \fIid\fP[];
.sp
.B wn_write_int(\fIstream\fP,\fIi\fP)
.B wn_cstream \fIstream\fP;
.B int \fIi\fP;
.sp
.B wn_write_double(\fIstream\fP,\fIf\fP)
.B wn_cstream \fIstream\fP;
.B double \fIf\fP;
.sp
.B wn_write_quoted_string(\fIstream\fP,\fIstart_char\fP,string,\fIfin_char\fP)
.B wn_cstream \fIstream\fP;
.B char \fIstart_char\fP,\fIfin_char\fP;
.B char \fIstring\fP[];
.sp
.B wn_write_literal_n_times(\fIstream\fP,\fIliteral\fP,\fIn\fP)
.B wn_cstream \fIstream\fP;
.B char \fIliteral\fP[];
.B int \fIn\fP;
.sp
.SH DESCRIPTION
These routines write the indicated object to the cstream \fIstream\fP.
The meaning of the other arguments is the same as in wnptok.

\fBwn_write_linefeed\fP writes a linefeed to \fIstream\fP and makes a 
note of the linefeed's mark.  This is NOT the same as 
issuing a

\fBwn_write_char\fP(\fIstream\fP,'\\n');

\fBwn_write_char\fP makes no note of the linefeed's mark; thus the
line length and column number will still be computed from the
last \fBwn_write_linefeed\fP.
.\".SH BUGS
.SH "SEE ALSO"
wnptok, wnwtokp, wncstr
.SH AUTHOR
Will Naylor