Question Why we need to cast the buf since it's already a char? wouldn't work the same without the (const char*)?