tab()

tab()#

Generates an indentation string based on the current depth level of nested function calls.

Prototype

char *tab(
    char *bf,
    int   bflen
);

Parameters

Key

Type

Description

bf

char *

Buffer to store the generated indentation string.

bflen

int

Maximum length of the buffer.


Return Value

A pointer to the buffer containing the generated indentation string.

Notes

The indentation is determined by the global variable __inside__, which tracks the depth level of nested function calls.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples