Python Stdout To String Function Example C