MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / write_all

Function write_all

yolo_detector/darknet_opt/src/utils.c:409–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409void write_all(int fd, char *buffer, size_t bytes)
410{
411 size_t n = 0;
412 while(n < bytes){
413 size_t next = write(fd, buffer + n, bytes-n);
414 if(next <= 0) error("write failed");
415 n += next;
416 }
417}
418
419
420char *copy_string(char *s)

Callers

nothing calls this directly

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected