SysTutorials

Linux Manual Pages › Section 9

seq_escape(9)

seq_escape – print string into buffer, escaping some characters

Synopsis

void seq_escape(struct seq_file *m, const char *s, const char *esc);

Arguments

m

target buffer

s

string

esc

set of characters that need escaping

Description

Puts string into buffer, replacing each occurrence of character from esc with usual octal escape. Use seq_has_overflowed to check for errors.

Copyright