DMCP interface 03.15_021
Loading...
Searching...
No Matches
Aux menu item functions

Functions for menu_line_str() formatting. More...

Functions

const char * rb_str (int val)
 Returns 'dot' selection string.
 
const char * sel_str (int val)
 Returns 'cross' selection string.
 
char * opt_str (char *s, char const *txt, int val)
 Format selection string.
 
char * date_str (char *s, const char *txt)
 Formats text followed by date.
 
char * time_str (char *s, const char *txt)
 Formats text followed by time.
 

Detailed Description

Functions for menu_line_str() formatting.

Function Documentation

◆ date_str()

char * date_str ( char * s,
const char * txt )

Formats text followed by date.

Parameters
sBuffer for resulting string
txtText to format
Returns
Into resulting string s formats txt followed by date string in square brackets

◆ opt_str()

char * opt_str ( char * s,
char const * txt,
int val )

Format selection string.

Parameters
sBuffer for resulting string
txtText to format
valSelection value
Returns
Into resulting string s formats txt preceded with selection marker given by sel_str(val)

◆ rb_str()

const char * rb_str ( int val)

Returns 'dot' selection string.

Parameters
valSelection value
Returns
"(*)" if val > 0, "(_)" otherwise

◆ sel_str()

const char * sel_str ( int val)

Returns 'cross' selection string.

Parameters
valSelection value
Returns
"(X)" if val > 0, "(_)" otherwise

◆ time_str()

char * time_str ( char * s,
const char * txt )

Formats text followed by time.

Parameters
sBuffer for resulting string
txtText to format
Returns
Into resulting string s formats txt followed by time string in square brackets