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

Function hePrintHelpStr

Singular/fehelp.cc:608–617  ·  view source on GitHub ↗

test for h being a string and print it

Source from the content-addressed store, hash-verified

606
607// test for h being a string and print it
608static void hePrintHelpStr(const idhdl hh,const char *id,const char *pa)
609{
610 if ((hh!=NULL) && (IDTYP(hh)==STRING_CMD))
611 {
612 PrintS(IDSTRING(hh));
613 PrintLn();
614 }
615 else
616 Print("`%s` not found in package %s\n",id,pa);
617}
618// try to find the help string as a loaded procedure or library
619// if found, display the help and return TRUE
620// otherwise, return FALSE

Callers 1

heOnlineHelpFunction · 0.85

Calls 3

PrintSFunction · 0.85
PrintLnFunction · 0.50
PrintFunction · 0.50

Tested by

no test coverage detected