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

Function ssiReadString

Singular/links/ssiLink.cc:487–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487static char *ssiReadString(const ssiInfo *d)
488{
489 char *buf;
490 int l;
491 l=s_readint(d->f_read);
492 buf=(char*)omAlloc0(l+1);
493 int throwaway =s_getc(d->f_read); /* skip ' '*/
494 throwaway=s_readbytes(buf,l,d->f_read);
495 //if (throwaway!=l) printf("want %d, got %d bytes\n",l,throwaway);
496 buf[l]='\0';
497 return buf;
498}
499
500static int ssiReadInt(s_buff fich)
501{

Callers 3

ssiReadRingFunction · 0.85
ssiReadProcFunction · 0.85
ssiRead1Function · 0.85

Calls 4

s_readintFunction · 0.85
omAlloc0Function · 0.85
s_getcFunction · 0.85
s_readbytesFunction · 0.85

Tested by

no test coverage detected