what is the substr? in the systemverilog

Int fd;
String str;

fd = $fopen(path, "r");
Status= $fgets(str, fd);
cm = str.substr(0,1);
cm1= str.substr(0,0);

I want to know what is substr function? What is the purpose above that??


Source: gcc

Leave a Reply