DMCP interface  03.15_020
Aux menu item functions

Functions for menu_line_str() formatting. More...

Functions

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

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