libexplain  1.4.D001
Functions
libexplain/string_buffer/putc_escaped.c File Reference
#include <libexplain/ac/ctype.h>
#include <libexplain/ac/limits.h>
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_string_buffer_putc_escaped (explain_string_buffer_t *sb, int c, int delimiter)

Function Documentation

void explain_string_buffer_putc_escaped ( explain_string_buffer_t sb,
int  c,
int  delimiter 
)

The explain_string_buffer_putc_escaped function is used to print a character with C escaping. This can be used for the contents of "string" and 'character' constants.

Parameters:
sbThe string buffer to be initialised.
cThe character to be printed if possible, and C escaped if not.
delimiterThe delimiter character; single quote for character constants, double quote for string constants

Definition at line 27 of file putc_escaped.c.