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 */
| 98 | * ct: changed char at the end of s |
| 99 | */ |
| 100 | char* 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 |
no outgoing calls
no test coverage detected