char buffer[80] = {0};
FILE* fp=popen("/usr/bin/uuidgen","r");
fgets(buffer,sizeof(buffer),fp);
pclose(fp);
It may have some limitations.
However, it is a simple way to get a GUID or UUID under SUSE Linux.
char buffer[80] = {0};
FILE* fp=popen("/usr/bin/uuidgen","r");
fgets(buffer,sizeof(buffer),fp);
pclose(fp);
It may have some limitations.
However, it is a simple way to get a GUID or UUID under SUSE Linux.