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

This site uses Akismet to reduce spam. Learn how your comment data is processed.