This documentation describes the Prokee module interface.
Reads characters from stdin until EOF is reached.
This function may read unicode characters on modern operating systems. Read characters are written utf8-encoded to
*buffer. Each character may consume up to 4 bytes of space.
Signature:
char *prompt_readFile(char **utf8_buffer,unsigned int *buffer_ln)
Parameters:
| char ** | utf8_buffer | [OUT] | The buffer where the read characters are stored. If the buffer is to small, the function will allocate a bigger buffer and store the size-1 of the new buffer in *buffer_ln. |
| unsigned int * | buffer_ln | [IN/OUT] | The alocated size of the buffer in bytes. If more than *buffer_ln characters are read, than a larger buffer is allocated and *buffer_ln is set to the new size-1. |
Return value:Returns
*buffer
Runs
prompt_readFile() and prints the input to
stdout.
Signature:
int prompt::main(int argc,char **argv)
Parameters:
| int | argc | | The number of command-line parameters. |
| char ** | argv | [IN] | The command-line parameters. |
Return value:Exit status. (EXIT_SUCCESS)