added char* function to send.cpp