File: wncinf.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 (58 lines) | stat: -rw-r--r-- 2,001 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
.\" placed in the public domain by Will Naylor     -*- nroff -*-
.\" 1998-08-21 formatting added by Jim Van Zandt <jrv@vanzandt.mv.com>
.TH WNCINF 3 "August 23, 1998" "WNLIB" ""
.SH NAME
wn_cstream_filename, wn_set_cstream_filename, wn_column_of_mark, wn_column_of_current_mark, wn_linenum_of_mark, wn_linenum_of_current_mark \- information about cstream
.SH SYNOPSIS
.nf
.B #include <wn/wncstr.h>
.sp
.B char *wn_cstream_filename(\fIstream\fP)
.B wn_cstream \fIstream\fP;
.sp
.B wn_set_cstream_filename(\fIstream\fP,\fIname\fP)
.B wn_cstream \fIstream\fP;
.B char \fIname\fP[];
.sp
.B int wn_column_of_mark(\fIstream\fP,\fImark\fP)
.B wn_cstream \fIstream\fP;
.B int \fImark\fP;
.sp
.B int wn_column_of_current_mark(\fIstream\fP)
.B wn_cstream \fIstream\fP;
.sp
.B int wn_linenum_of_mark(\fIstream\fP,\fImark\fP)
.B wn_cstream \fIstream\fP;
.B int \fImark\fP;
.sp
.B int wn_linenum_of_current_mark(\fIstream\fP)
.B wn_cstream \fIstream\fP;
.SH DESCRIPTION
These routines set and get various information about the cstream
\fIstream\fP.  This information can be used to make helpful error
messages if a parse fails.

\fBwn_cstream_filename\fP returns the filename for \fIstream\fP previously
set by \fBwn_set_cstream_filename\fP.  The default is \fBNULL\fP.

\fBwn_column_of_mark\fP returns the number of chars between the closest
previous linefeed and \fImark\fP.  A linefeed is assumed to exist at
beginning of \fIstream\fP (\fImark\fP = -1).

\fBwn_column_of_current_mark\fP returns the number of chars between the 
closest previous linefeed and the current \fImark\fP.  A linefeed is 
assumed to exist at beginning of \fIstream\fP (\fImark\fP = -1).

\fBwn_linenum_of_mark\fP returns the number of linefeeds between \fImark\fP
and beginning of \fIstream\fP.  Line numbers start at 1.

\fBwn_linenum_of_current_mark\fP returns the number of linefeeds 
between the current \fImark\fP and beginning of \fIstream\fP.  Line numbers
start at 1.
.\".SH BUGS
.SH "SEE ALSO"
wncstr
.SH AUTHOR
Will Naylor