MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / adfAccess2String

Function adfAccess2String

dep/adflib/src/adf_dir.c:679–695  ·  view source on GitHub ↗

* Access2String * */

Source from the content-addressed store, hash-verified

677 *
678 */
679 char*
680adfAccess2String(int32_t acc)
681{
682 static char ret[8+1];
683
684 strcpy(ret,"----rwed");
685 if (hasD(acc)) ret[7]='-';
686 if (hasE(acc)) ret[6]='-';
687 if (hasW(acc)) ret[5]='-';
688 if (hasR(acc)) ret[4]='-';
689 if (hasA(acc)) ret[3]='a';
690 if (hasP(acc)) ret[2]='p';
691 if (hasS(acc)) ret[1]='s';
692 if (hasH(acc)) ret[0]='h';
693
694 return(ret);
695}
696
697
698/*

Callers 1

printEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected