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

Function PrintOut

Singular/utils.cc:163–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161#endif
162
163static void PrintOut(FILE *fd, int pos_start, int pos_end)
164{
165 if (pos_start <= 0 || pos_end - pos_start <= 4) return;
166 char c = 0;
167
168 fseek(fd, pos_start, SEEK_SET);
169 while (pos_start++ <= pos_end)
170 {
171 if (c == '\\')
172 {
173 c = fgetc(fd);
174 if (c != '"') putchar('\\');
175 }
176 else
177 c = fgetc(fd);
178 if (c == '@' || c == '$') putchar('\\');
179 if (c != '\r') putchar(c);
180 }
181 if (c == '\\') putchar('\\');
182}
183
184
185void printpi(procinfov pi)

Callers 1

printpiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected