MCPcopy Create free account
hub / github.com/IoLanguage/io / UArray_writeToFilePath_

Function UArray_writeToFilePath_

libs/basekit/source/UArray_stream.c:137–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137long UArray_writeToFilePath_(const UArray *self, const UArray *path) {
138 UArray *sysPath =
139 (UArray_itemSize(path) == 1) ? (UArray *)path : UArray_asUTF8(path);
140 FILE *fp = fopen(UArray_asCString(sysPath), "w");
141 long itemsWritten = -1;
142
143 if (fp) {
144 itemsWritten = UArray_writeToCStream_(self, fp);
145 fclose(fp);
146 }
147
148 return itemsWritten;
149}

Callers

nothing calls this directly

Calls 4

UArray_itemSizeFunction · 0.85
UArray_asUTF8Function · 0.85
UArray_asCStringFunction · 0.85
UArray_writeToCStream_Function · 0.85

Tested by

no test coverage detected