Returns the number of columns needed to represent the printed version of the expression.


   str STRING )
  1. str is any valid string expression.


The fgl_width() function returns the number of columns that will be used if you display str on a text terminal.

If the parameter is NULL, the function returns zero.

The number of columns used by a character depends on the glyph (that is the graphical symbol used to draw the character on the screen). For example, an ASCII character like "A" uses one column, while one Chinese character uses 2 columns (this means that on a text terminal, the size of one Chinese character takes the same size as "AB").

Trailing blanks are counted in the length of the string.