
| Args: | |||
| _ obj | : object to write | ||
| _ out | : output string (allocated for at least len+1 characters) | ||
| _ len | : max number of characters to write | ||
| Returns: | |||
| _ -1 | : if some error occurred | ||
| _ the maximum number of characters needed to write completely the object if 'out' is NULL (len is ignored) | |||
| else the total number of characters written. | |||
| Errors: | |||
| _ EINVAL | : if a NULL XCLE_Object was passed as argument | ||
| Args: | |||
| _ vd | : Void object to write | ||
| _ out | : output string | ||
| _ len | : max number of characters to write, trailing '\0' excluded | ||
| Returns: | |||
| _ -1 | : if some error occured | ||
| _ 1 | : if 'out' was NULL or len>=1 | ||
| _ 0 | : if 'out' was non-NULL and len was zero | ||
| Errors: | |||
| _ EINVAL | : if a NULL Void was passed as argument | ||
| Args: | |||
| _ in | : Intg object to write | ||
| _ out | : output string | ||
| _ len | : maximum number of characters to write, trailing '\0' excluded | ||
| Returns: | |||
| _ NULL | : if no memory was available | ||
| _ the number of characters needed to write an Intg, if 'out' was NULL | |||
| else the number of character written (10/11, or up to len). | |||
| Errors: | |||
| _ EINVAL | : if a NULL Intg was passed as argument | ||
| Args: | |||
| _ fp | : Fltp object to write | ||
| _ out | : output string | ||
| _ len | : maximum number of characters to write, trailing '\0' excluded | ||
| Returns: | |||
| _ NULL | : if no memory was available | ||
| _ the maximum number of characters needed, if 'out' was NULL | |||
| else the number of characters written. | |||
| Errors: | |||
| _ EINVAL | : if a NULL was passed as argument | ||
| _ ENOMEM | : if no memory was available | ||
| Args: | |||
| _ str | |||
| _ out | |||
| _ len | |||
| Returns: | |||
| _ NULL | : if no memory was available | ||
| Errors: | |||
| _ EINVAL | : if a NULL Strg was passed as argument | ||
| _ ENOMEM | : if no memory was available | ||
| Args: | |||
| _ lst | : List object to write | ||
| _ out | : output character string (allocated for at least len+1 characters) | ||
| _ len | : maximum number of characters to write | ||
| Returns: | |||
| _ -1 | : if a NULL List was passed as argument | ||
| _ the maximum number of characters neede to write this List, if 'out' was NULL | |||
| else the number of characters written. | |||
| Errors: | |||
| _ EINVAL | : if a NULL List was passed as argument | ||
| Args: | |||
| _ cod | : Code to write | ||
| _ out | : output string (allocated for at least len+1 characters) | ||
| _ len | : maximum number of character to write | ||
| Returns: | |||
| _ NULL | : if a NULL Code was passed as argument | ||
| _ the number of characters neeede to write completely the Code, if 'out' was NULL | |||
| else the total number of characters written. | |||
| Errors: | |||
| _ EINVAL | : if a NULL Code was passed as argument | ||
| Args: | |||
| _ stk | : Stack to print | ||
| _ out | : output character string | ||
| _ max | : maximum number of characters to print (final nil char EXCEPTED) | ||
| _ head | : head string | ||
| _ rowfmt | : row printing format | ||
| _ tail | : tail string | ||
| _ rows | : number of rows (height in chars) | ||
| Returns: | |||
| _ -1 | : if the Stack was NULL | ||
| _ the total number of characters that should be printed, if 'out' was NULL. | |||
| else the number of characters printed. | |||
| Errors: | |||
| _ EINVAL | : if a NULL Stack was passed as argument | ||
| Note: | |||
| The row format string is printed for each stack row between 0 and rows-1. | |||
| Escape sequences take the form %fdd..dd?, where the 'f' char is an optionnal | |||
| fill character (by dfault ' '), 'd' chars are digits and '?' denotes either | |||
| the 'n' or 's' characters. They are replaced by the stack row number, for the 'n' | |||
| format, and the corresponding object, for the 's' format, each written on | |||
| the number of chars denoted by the digits. | |||
| Args: | |||
| _ nms | : Hash to print | ||
| _ out | : output character string | ||
| _ max | : maximum number of characters to print (final nil char EXCEPTED) | ||
| _ head | : head string | ||
| _ rowfmt | : row printing format | ||
| _ tail | : tail string | ||
| _ rows | : number of rows (height in chars) | ||
| Returns: | |||
| _ -1 | : if the Hash was NULL | ||
| _ the total number of characters that should be printed, if 'out' was NULL. | |||
| else the number of characters printed. | |||
| Errors: | |||
| _ EINVAL | : if a NULL Hash was passed as argument | ||
| Note: | |||
| The row format string is printed for each name entry in the Hash. | |||
| Escape sequences take the form %fdd..dd?, where the 'f' char is an optionnal | |||
| fill character (by dfault ' '), 'd' chars are digits and '?' denotes either | |||
| the 'n' or 's' characters. They are replaced by the entry name, for the 'n' | |||
| format, and the corresponding object, for the 's' format, each written on | |||
| the number of chars denoted by the digits. | |||