MCPcopy Create free account
hub / github.com/Singular/Singular / iiProcName

Function iiProcName

Singular/iplib.cc:100–109  ·  view source on GitHub ↗

2 * given a line 'proc[ ]+{name}[ \t]*' * return a pointer to name and set the end of '\0' * changes the input! * returns: e: pointer to 'end of name' * ct: changed char at the end of s */

Source from the content-addressed store, hash-verified

98* ct: changed char at the end of s
99*/
100char* iiProcName(char *buf, char & ct, char* &e)
101{
102 char *s=buf+5;
103 while (*s==' ') s++;
104 e=s+1;
105 while ((*e>' ') && (*e!='(')) e++;
106 ct=*e;
107 *e='\0';
108 return s;
109}
110
111/*2
112* given a line with args, return the argstr

Callers 2

scanner.ccFile · 0.85
iiGetLibProcBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected