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

Function print_spoly

Singular/dyn_modules/customstd/customstd.cc:120–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119STATIC_VAR char* si_filename;
120static BOOLEAN print_spoly(kStrategy strat)
121{
122 char *s;
123 if (strat->P.t_p==NULL)
124 {
125 s=pString(strat->P.p);
126 }
127 else
128 {
129 poly p=strat->P.t_p;
130 s=p_String(p,strat->tailRing);
131 }
132 FILE *f=fopen(si_filename,"a");
133 fwrite(s,strlen(s),1,f);
134 fwrite("\n",1,1,f);
135 fflush(f);
136 fclose(f);
137 return FALSE; // return TRUE if sp was changed, FALSE if not
138}
139
140STATIC_VAR int si_filenr;
141static BOOLEAN print_syz(kStrategy strat)

Callers

nothing calls this directly

Calls 2

pStringFunction · 0.85
p_StringFunction · 0.50

Tested by

no test coverage detected