当我阅读BlueZ个源代码时,我经常看到char
个数组定义如下:
// bluez/android/sco-msg.h
static const char BLUEZ_SCO_SK_PATH[] = "\0bluez_sco_socket";
将第一个元素定义为\0
有什么好处?
当我阅读BlueZ个源代码时,我经常看到char
个数组定义如下:
// bluez/android/sco-msg.h
static const char BLUEZ_SCO_SK_PATH[] = "\0bluez_sco_socket";
将第一个元素定义为\0
有什么好处?