---
name: "wn_write_id"
section: "3"
platform: "linux"
package: "libwn-dev"
version: "6.0-17"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/wnwtok"
---

# wn\_write\_id(3)

write stuff

Part of [wnwtok(3)](/wnwtok/3.md).

## 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

## SYNOPSIS

```
#include <wn/wncstr.h>

wn_write_empty(stream)
wn_cstream stream;

wn_write_eos(stream)
wn_cstream stream;

wn_write_char(stream,c)
wn_cstream stream;
char c;

wn_write_literal_char(stream,c)
wn_cstream stream;
char c;

wn_write_blanks(stream,num)
wn_cstream stream;
int num;

wn_write_blanks_until_column(stream,col)
wn_cstream stream;
int col;

wn_write_linefeed(stream)
wn_cstream stream;

wn_write_literal(stream,literal)
wn_cstream stream;
char literal[];

wn_write_id(stream,id)
wn_cstream stream;
char id[];

wn_write_int(stream,i)
wn_cstream stream;
int i;

wn_write_double(stream,f)
wn_cstream stream;
double f;

wn_write_quoted_string(stream,start_char,string,fin_char)
wn_cstream stream;
char start_char,fin_char;
char string[];

wn_write_literal_n_times(stream,literal,n)
wn_cstream stream;
char literal[];
int n;

```

## DESCRIPTION

These routines write the indicated object to the cstream *stream*. The meaning of the other arguments is the same as in wnptok.

**wn\_write\_linefeed** writes a linefeed to *stream* and makes a  note of the linefeed's mark.  This is NOT the same as  issuing a

**wn\_write\_char**(*stream*,'\\n');

**wn\_write\_char** makes no note of the linefeed's mark; thus the line length and column number will still be computed from the last **wn\_write\_linefeed**.

## SEE ALSO

wnptok, wnwtokp, wncstr

## AUTHOR

Will Naylor
