« Home » « Learn » « Download » « Github »

logo

Cello High Level C

Examples

Usage

var x = new(Process, $S("ls"), $S("r"));
char c;
while (not seof(x)) {
  sread(x, &c, 1);
  print("%c", $I(c));
}
sclose(x);

Process


Operating System Process

The Process type is a wrapper for an operating system process as constructed by the unix-like call popen. In this sense it is much like a standard file in the operating system but that instead of writing data to a location you are writing it as input to a process.

Definition

struct Process {
  FILE* proc;
};

Derives

Implements

  • Docname brief description definition
  • Formatformat_to format_from
  • Newnew del construct destruct
  • Startwith start stop join running
  • Streamsopen sclose sseek stell sflush seof sread swrite

Back