Lolly 1.4.27
Loading...
Searching...
No Matches
Functions
spawn.cpp File Reference
#include "spawn.hpp"
#include "array.hpp"
#include <errno.h>
#include <windows.h>
Include dependency graph for spawn.cpp:

Go to the source code of this file.

Functions

unsigned bkgread (void *thatv)
 

Function Documentation

◆ bkgread()

unsigned bkgread ( void * thatv)

Definition at line 110 of file spawn.cpp.

110 {
111 char buf[1024];
112 int cnt;
114 do {
115 cnt= _read (that->fd, buf, sizeof (buf));
116 if (cnt > 0) *(that->str)+= std::basic_string<char> (buf, cnt);
117 else if (cnt == 0) that->close ();
118 } while (cnt > 0);
119 return (cnt);
120}
The list class represents a linked list.
Definition list.hpp:48
list(T item)
Construct a new list object with a single item.
Definition list.hpp:137