tail head cat sleep
QR code linking to this page

Manual Pages  — DEVCTL_SAFE_QUOTE_SB

NAME

devctl_safe_quote_sb – Insert a string, properly quoted, into a sbuf

CONTENTS

SYNOPSIS

#include <sys/devctl.h>
#include <sys/sbuf.h>

void
devctl_safe_quote_sb(struct sbuf *sb, const char *src);

DESCRIPTION

Copy the string from src into sb. All backslash characters are doubled. All double quote characters 'amp;"' are also preceded by a backslash. All other characters are copied without modification. The devctl(4) protocol requires quoted string to be quoted thus. This routine centralizes this knowledge.

SEE ALSO

devd(8)

AUTHORS

This manual page was written by M. Warner Losh

DEVCTL_SAFE_QUOTE_SB (9) September 22, 2020

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

The wonderful thing about standards is that there are so many of them to choose from.
— Grace Murray Hopper