File:  [Research Unix] / researchv9 / jtools / man / man3 / muxstring.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

.TH MUXSTRING 3
.SH NAME
setmuxbuf, getmuxbuf \- exchanging strings between tools
.SH SYNOPSIS
.B #include <jerq.h>
.PP
.B setmuxbuf(s); String *s;
.PP
.B getmuxbuf(d); String *d;
.SH DESCRIPTION
These functions manipulate strings represented
in the following form.
.IP
.EX
.ta \w'struct 'u
struct	String {
	char *s;
	short n;
	short size;
};
.EE
.LP
The string proper occupies the first 
.B n
characters of a data block of
.L size
characters pointed to by
.BR s .
Initially both
.B size
and
.B s
should be 0.
Strings are always counted, not terminated by
.BR \e0 .
The functions obtain space as needed from
.IR gcalloc  ;
see
.IR alloc (3).
.PP
.I Setmuxbuf
copies string 
.I s
into the snarf buffer maintained by
the underlying window system;
.I getmuxbuf
copies from the snarf buffer into
.I d.
.SH SEE ALSO
.IR string (3)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.