| 135 | } |
| 136 | |
| 137 | long 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 | } |
nothing calls this directly
no test coverage detected