MCPcopy Create free account
hub / github.com/GJDuck/e9patch / stdio_write_buf

Function stdio_write_buf

examples/stdlib.c:3102–3112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3100}
3101
3102static int stdio_write_buf(int fd, const char *start, const char *end)
3103{
3104 while (start < end)
3105 {
3106 ssize_t size = write(fd, start, end - start);
3107 if (size < 0)
3108 return EOF;
3109 start += size;
3110 }
3111 return 0;
3112}
3113
3114static int stdio_stream_write_buf(FILE *stream, const char *start,
3115 const char *end)

Callers 1

stdio_stream_write_bufFunction · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected