MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxWriteCData

Function fxWriteCData

xs/tools/xslBase.c:924–936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922}
923
924void fxWriteCData(FILE* file, void* data, txSize size)
925{
926 unsigned char* p = data;
927 unsigned char c;
928 fprintf(file, "\"");
929 while (size) {
930 c = *p;
931 fprintf(file, "\\x%.2x", c);
932 p++;
933 size--;
934 }
935 fprintf(file, "\"");
936}
937
938void fxWriteCString(FILE* file, txString string)
939{

Callers 1

fxPrintSlotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected